SlideShare a Scribd company logo
1 of 24
PEER TO PEER
SYSTEM
Author : Jahanzaib Niazi
What is Peer to Peer Architecture?
 Peer to peer is a type of architecture in which nodes are
interconnected with each other and share resources with
each other without the central controlling server.
 P2P system allows us to construct such a distributed system
or a application in which all resources and data is contributed
by the hosts over the network.
 P2P system allows us to sharing of data at very large scale
without the use of any server whose job is to manage the
scaling it means that scaling of data can be done without a
server.
 P2P are used in Filesharing,webcaching and providing
information to user , Bittorrent and etc are examples of P2P
applications which use P2P architecture.
Difference b/w P2P and Client
Server Architecture
 Server is a basically a point of difference
between the P2P and client server
architecture.In c/s architecture there is a
central server which is managing all the
resources across the network but in p2p there
is no server which is completely handling the
complete network all nodes can connect and
share resources with each other.
Advantages of Peer to Peer
 It is easy to install.
 All resources are shared by all nodes with
each other without a server.
 Central dependency is eliminated.
 It is more reliable.
 Cost of building and maintaining this p2p
network is less as compared to other network.
Disadvantages of Peer to Peer
 As we no there is not central server so that
network cannot be administrated for example we
cannot filter the files being shared by the nodes
with each other.
 Security is an other issue in this network as
malware can easily be transmitted across the
network.
 Because of no centralized server we cannot make
a backup of system every node has to make
backup of its own data in his system.
 Transferring of sensitive data through the p2p is
not recommended.
Distributed Nodes location and
Routing
 Distributed nodes are the nodes which are
connected in the p2p network.
 Efficiency of the a peer to system depends
upon the location of nodes and there
interconnection.
Peer to Peer Models
 Purely Decentralized System
 Centralized System
 Hybird System
Purely Decentralized Model:
It is a type of model in which there is not central sever all nodes are acting as both client and server all are getting
and sending data to each other no server is managing them.
Advantages:
i.) High Performance
ii.) Failure of single node doesn’t fails whole network.
iii.) Easily scalable and robustness.
Disadvantages:
i.) We cannot administrate the network.
ii.) Cannot filter the network traffic that what files are being shared.
iii.) Locating peers and offering services is a challenging tasks.
Example:
Gnutella 0.4
 Centralized P2P Model:
In this model which there is a central server whose job is that
it is maintaining all the records of files which each node have.
When a node needs a file its requests to the server makes
the lookup in its database and redirects the requesting node
to that node which has file.
So then this requesting node makes the direct connection
with that node which has file.
Note Server only searches file it doesnot transfer files.
For transfering of files nodes make direct connection
With each other.
Continued….
Continued….
 Advantages:
i.) Quick searches.
ii.) Low bandwidth required.
iii.) Searches can be filtered to some extent.
iv.) Main advantage of this system is faster resource sharing.
 Disadvantages:
i.) Failure of server fails down whole network.
ii.) This model is more easily be attacked.
iii.) There limitation is that scalabilty of network is affected by
use of server.
Example:
Napster, BitTorent.
Hybird P2P Model:
 Main advantage of Centralized model is faster and reliable resource
sharing.But there limitation is that scalabiilty of system is affected by
use of servers.
 Main advantage of Decentralized model is that they take less time
in locating the resource as compared to the Centralized Model.
 Hybird Model is a type of Model which is introduced to take
advantage of both centralized and decentralized system this model
doesn’t uses the server hence scalability issue got resolved.
 This model introduced the new concept of SUPERNODES.Hybird
model uses Super nodes,they are the more powerful nodes then the
other nodes they are dynamically choosen.By use of super nodes
Resource locating become faster. By using supernodes we can take
advantage of both decentralized search techniques and centralized
search techniques.
 Continued….
Continued….
 Advantages of Hybird Model:
I.) Issue of scalability in centralized model
resolved.
ii.) We can fastly locate the resource by use of
supernodes.
 Disadvantages:
i.) Searching is still based upon the flooding.
ii.) Loss of Distribution , more centralized control.
Example:
Gnutella v0.6
Skype Case Study:
 Skype has basically a hybird peer to peer architecture such
as Kazza or Gnutella v0.6.
 There are three types of nodes in Skype Network.
i.) Ordinary peers
ii.) Super Nodes
iii.) Central Login Server
The login server stores all the usernames and
All passwords and ensures that usernames are
Unique across the skype namespace this node
Authenticates the users.
Continued…
Continued….
 Skype used TCP for signalling and both UDP
and TCP for data transferring.
 All users communication are encrypted using
AES 256-bit.
 Normal Login:
i.) Skype client connects with the supernode.
ii.) Skype client is authenticated using skype
login server.
Some important terminologies:
 Seeder: Seeder is a one whose file is completely downloaded but its
uploading.
 Leecher: Some one who is downloading file.
 Peer: Collective term for seeder and leecher.
 Swarm : A group of peers sending or receiving simultaneously the same
file.
 Torrent file: A file contains information(Address/hostname) about Tracker.
 Tracker : A server that manages the bit torrent transfer process. tracker is
computer which acts as a server, and maintains a list of nodes which are
participating in the system (ie. computers that are currently downloading or
uploading file data). For a new node to join a Bittorrent network, it sends a
message to the tracker requesting the IPs of some of the other participating
nodes, so that it can connect to them and begin downloading. No actual file
data is downloaded from the tracker; its job is simply to facilitate node
discovery.
Bit Torrent Architecture
 Bit torrent is a centralized peer to peer
Application.
 Bit torrent uses a central server to maintain the
records of all shared files of all nodes.
 Below are four steps in Bit torrent.
 Join (Torrent is created)
 Publish (Torrent is published over internet)
 Search (File is searched across the nodes)
 Fetch (File is download)
Overall Architecture
A
B
C
Peer
[Leech]
Downloader
“US”
Peer
[Seed]
Peer
[Leech]
TrackerWeb Server
Overall Architecture
A
B
C
Peer
[Leech]
Downloader
“US”
Peer
[Seed]
Peer
[Leech]
TrackerWeb Server
Overall Architecture
A
B
C
Peer
[Leech]
Downloader
“US”
Peer
[Seed]
Peer
[Leech]
TrackerWeb Server
Overall Architecture
A
B
C
Peer
[Leech]
Downloader
“US”
Peer
[Seed]
Peer
[Leech]
TrackerWeb Server
Overall Architecture
A
B
C
Peer
[Leech]
Downloader
“US”
Peer
[Seed]
Peer
[Leech]
TrackerWeb Server
Overall Architecture
A
B
C
Peer
[Leech]
Downloader
“US”
Peer
[Seed]
Peer
[Leech]
TrackerWeb Server
Overall Architecture
A
B
C
Peer
[Leech]
Downloader
“US”
Peer
[Seed]
Peer
[Leech]
TrackerWeb Server
Query Flooding:
 Query flooding is an old technique of file searching across the
P2P network.
 Gnutella v0.4 used that technique.
 In this technique file is searched across the neighbours , if
they don’t have file these neighbours search file around there
neighbours hence whole network is searched.
 In this technique we can limit the range of search.
 Query flooding use is very poor it is not easily scalable hence
now a days it is not used.
 Now a days it is replaced by Query Routing such as Gnutella
v6.0 is using Query Routing.
 Distributed hashtables are also an alternative.
 Thanks for learning:
For Queries and Feedback email me at :
Jahanzaib.niazi001@gmail.com
Also you can download lecture notes from:
http://www.bscsf11b.blogspot.com

More Related Content

What's hot

Clientserver Presentation
Clientserver PresentationClientserver Presentation
Clientserver PresentationTuhin_Das
 
Distributed computing
Distributed computingDistributed computing
Distributed computingshivli0769
 
TCP-IP Reference Model
TCP-IP Reference ModelTCP-IP Reference Model
TCP-IP Reference ModelMukesh Tekwani
 
Cloud security Presentation
Cloud security PresentationCloud security Presentation
Cloud security PresentationAjay p
 
Remote Procedure Call in Distributed System
Remote Procedure Call in Distributed SystemRemote Procedure Call in Distributed System
Remote Procedure Call in Distributed SystemPoojaBele1
 
Advanced computer network
Advanced computer networkAdvanced computer network
Advanced computer networkTrinity Dwarka
 
Unit 3 cs6601 Distributed Systems
Unit 3 cs6601 Distributed SystemsUnit 3 cs6601 Distributed Systems
Unit 3 cs6601 Distributed SystemsNandakumar P
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memoryAshish Kumar
 
Fault tolerance in distributed systems
Fault tolerance in distributed systemsFault tolerance in distributed systems
Fault tolerance in distributed systemssumitjain2013
 
Handover in Mobile Computing
Handover in Mobile ComputingHandover in Mobile Computing
Handover in Mobile ComputingKABILESH RAMAR
 
Data Designs (Software Engg.)
Data Designs (Software Engg.)Data Designs (Software Engg.)
Data Designs (Software Engg.)Arun Shukla
 
Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed SystemSunita Sahu
 
Communication in Distributed Systems
Communication in Distributed SystemsCommunication in Distributed Systems
Communication in Distributed SystemsDilum Bandara
 
Computer Networks Lecture Notes
Computer Networks Lecture NotesComputer Networks Lecture Notes
Computer Networks Lecture NotesFellowBuddy.com
 

What's hot (20)

Clientserver Presentation
Clientserver PresentationClientserver Presentation
Clientserver Presentation
 
Trends in distributed systems
Trends in distributed systemsTrends in distributed systems
Trends in distributed systems
 
Distributed computing
Distributed computingDistributed computing
Distributed computing
 
11. dfs
11. dfs11. dfs
11. dfs
 
TCP-IP Reference Model
TCP-IP Reference ModelTCP-IP Reference Model
TCP-IP Reference Model
 
Replication in Distributed Systems
Replication in Distributed SystemsReplication in Distributed Systems
Replication in Distributed Systems
 
On demand provisioning
On demand provisioningOn demand provisioning
On demand provisioning
 
Cloud security Presentation
Cloud security PresentationCloud security Presentation
Cloud security Presentation
 
Remote Procedure Call in Distributed System
Remote Procedure Call in Distributed SystemRemote Procedure Call in Distributed System
Remote Procedure Call in Distributed System
 
Advanced computer network
Advanced computer networkAdvanced computer network
Advanced computer network
 
Unit 3 cs6601 Distributed Systems
Unit 3 cs6601 Distributed SystemsUnit 3 cs6601 Distributed Systems
Unit 3 cs6601 Distributed Systems
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
 
Fault tolerance in distributed systems
Fault tolerance in distributed systemsFault tolerance in distributed systems
Fault tolerance in distributed systems
 
Handover in Mobile Computing
Handover in Mobile ComputingHandover in Mobile Computing
Handover in Mobile Computing
 
Data Designs (Software Engg.)
Data Designs (Software Engg.)Data Designs (Software Engg.)
Data Designs (Software Engg.)
 
Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed System
 
Transaction TCP
Transaction TCPTransaction TCP
Transaction TCP
 
Message passing in Distributed Computing Systems
Message passing in Distributed Computing SystemsMessage passing in Distributed Computing Systems
Message passing in Distributed Computing Systems
 
Communication in Distributed Systems
Communication in Distributed SystemsCommunication in Distributed Systems
Communication in Distributed Systems
 
Computer Networks Lecture Notes
Computer Networks Lecture NotesComputer Networks Lecture Notes
Computer Networks Lecture Notes
 

Similar to Peer to peer system

Peer to peer data management
Peer to peer data managementPeer to peer data management
Peer to peer data managementJunaid Lodhi
 
Network archetecture
Network archetectureNetwork archetecture
Network archetectureshah fahad
 
App for peer-to-peer file transfer
App for peer-to-peer file transferApp for peer-to-peer file transfer
App for peer-to-peer file transferIRJET Journal
 
A Brief Note On Peer And Peer ( P2P ) Applications Have No...
A Brief Note On Peer And Peer ( P2P ) Applications Have No...A Brief Note On Peer And Peer ( P2P ) Applications Have No...
A Brief Note On Peer And Peer ( P2P ) Applications Have No...Brenda Thomas
 
Peer to peer (p2p)
Peer to peer (p2p)Peer to peer (p2p)
Peer to peer (p2p)Harshini
 
Peer To Peer.pptx
Peer To Peer.pptxPeer To Peer.pptx
Peer To Peer.pptxHananShk
 
Peer to Peer Network with its Architecture, Types, and Examples!!
Peer to Peer Network with its Architecture, Types, and Examples!!Peer to Peer Network with its Architecture, Types, and Examples!!
Peer to Peer Network with its Architecture, Types, and Examples!!DigitalThinkerHelp
 
Commonly Used Peer to Peer Methods & Applications
Commonly Used Peer to Peer Methods & ApplicationsCommonly Used Peer to Peer Methods & Applications
Commonly Used Peer to Peer Methods & Applications905426
 
PEER_TO_PEER SHARING PRESENTATION
PEER_TO_PEER SHARING PRESENTATIONPEER_TO_PEER SHARING PRESENTATION
PEER_TO_PEER SHARING PRESENTATIONAseem Chakrabarthy
 
Peer to peer system - Mạng ngang hàng.
Peer to peer system - Mạng ngang hàng.Peer to peer system - Mạng ngang hàng.
Peer to peer system - Mạng ngang hàng.ThaiLeHuy1
 
Peer to peer_v2pptx
Peer to peer_v2pptxPeer to peer_v2pptx
Peer to peer_v2pptxMac Pat
 
Textual based retrieval system with bloom in unstructured Peer-to-Peer networks
Textual based retrieval system with bloom in unstructured Peer-to-Peer networksTextual based retrieval system with bloom in unstructured Peer-to-Peer networks
Textual based retrieval system with bloom in unstructured Peer-to-Peer networksUvaraj Shan
 
Lecture - Network Technologies: Peer-to-Peer Networks
Lecture - Network Technologies: Peer-to-Peer NetworksLecture - Network Technologies: Peer-to-Peer Networks
Lecture - Network Technologies: Peer-to-Peer NetworksJames Salter
 

Similar to Peer to peer system (20)

Peer to peer data management
Peer to peer data managementPeer to peer data management
Peer to peer data management
 
Peer to Peer services and File systems
Peer to Peer services and File systemsPeer to Peer services and File systems
Peer to Peer services and File systems
 
Network archetecture
Network archetectureNetwork archetecture
Network archetecture
 
Peer Sim & P2P
Peer Sim & P2PPeer Sim & P2P
Peer Sim & P2P
 
Final peersimp pt
Final peersimp ptFinal peersimp pt
Final peersimp pt
 
App for peer-to-peer file transfer
App for peer-to-peer file transferApp for peer-to-peer file transfer
App for peer-to-peer file transfer
 
A Brief Note On Peer And Peer ( P2P ) Applications Have No...
A Brief Note On Peer And Peer ( P2P ) Applications Have No...A Brief Note On Peer And Peer ( P2P ) Applications Have No...
A Brief Note On Peer And Peer ( P2P ) Applications Have No...
 
computer networks
computer networkscomputer networks
computer networks
 
Peer to peer (p2p)
Peer to peer (p2p)Peer to peer (p2p)
Peer to peer (p2p)
 
Peer To Peer.pptx
Peer To Peer.pptxPeer To Peer.pptx
Peer To Peer.pptx
 
Peer to Peer Network with its Architecture, Types, and Examples!!
Peer to Peer Network with its Architecture, Types, and Examples!!Peer to Peer Network with its Architecture, Types, and Examples!!
Peer to Peer Network with its Architecture, Types, and Examples!!
 
Commonly Used Peer to Peer Methods & Applications
Commonly Used Peer to Peer Methods & ApplicationsCommonly Used Peer to Peer Methods & Applications
Commonly Used Peer to Peer Methods & Applications
 
Peer to peer
Peer to peerPeer to peer
Peer to peer
 
Peer to peer(p2 p)
Peer to peer(p2 p)Peer to peer(p2 p)
Peer to peer(p2 p)
 
PEER_TO_PEER SHARING PRESENTATION
PEER_TO_PEER SHARING PRESENTATIONPEER_TO_PEER SHARING PRESENTATION
PEER_TO_PEER SHARING PRESENTATION
 
Peer to peer system - Mạng ngang hàng.
Peer to peer system - Mạng ngang hàng.Peer to peer system - Mạng ngang hàng.
Peer to peer system - Mạng ngang hàng.
 
Peer to peer_v2pptx
Peer to peer_v2pptxPeer to peer_v2pptx
Peer to peer_v2pptx
 
Peer topeer
Peer topeerPeer topeer
Peer topeer
 
Textual based retrieval system with bloom in unstructured Peer-to-Peer networks
Textual based retrieval system with bloom in unstructured Peer-to-Peer networksTextual based retrieval system with bloom in unstructured Peer-to-Peer networks
Textual based retrieval system with bloom in unstructured Peer-to-Peer networks
 
Lecture - Network Technologies: Peer-to-Peer Networks
Lecture - Network Technologies: Peer-to-Peer NetworksLecture - Network Technologies: Peer-to-Peer Networks
Lecture - Network Technologies: Peer-to-Peer Networks
 

Recently uploaded

On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesShubhangi Sonawane
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIShubhangi Sonawane
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 

Recently uploaded (20)

On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 

Peer to peer system

  • 1. PEER TO PEER SYSTEM Author : Jahanzaib Niazi
  • 2. What is Peer to Peer Architecture?  Peer to peer is a type of architecture in which nodes are interconnected with each other and share resources with each other without the central controlling server.  P2P system allows us to construct such a distributed system or a application in which all resources and data is contributed by the hosts over the network.  P2P system allows us to sharing of data at very large scale without the use of any server whose job is to manage the scaling it means that scaling of data can be done without a server.  P2P are used in Filesharing,webcaching and providing information to user , Bittorrent and etc are examples of P2P applications which use P2P architecture.
  • 3. Difference b/w P2P and Client Server Architecture  Server is a basically a point of difference between the P2P and client server architecture.In c/s architecture there is a central server which is managing all the resources across the network but in p2p there is no server which is completely handling the complete network all nodes can connect and share resources with each other.
  • 4. Advantages of Peer to Peer  It is easy to install.  All resources are shared by all nodes with each other without a server.  Central dependency is eliminated.  It is more reliable.  Cost of building and maintaining this p2p network is less as compared to other network.
  • 5. Disadvantages of Peer to Peer  As we no there is not central server so that network cannot be administrated for example we cannot filter the files being shared by the nodes with each other.  Security is an other issue in this network as malware can easily be transmitted across the network.  Because of no centralized server we cannot make a backup of system every node has to make backup of its own data in his system.  Transferring of sensitive data through the p2p is not recommended.
  • 6. Distributed Nodes location and Routing  Distributed nodes are the nodes which are connected in the p2p network.  Efficiency of the a peer to system depends upon the location of nodes and there interconnection.
  • 7. Peer to Peer Models  Purely Decentralized System  Centralized System  Hybird System Purely Decentralized Model: It is a type of model in which there is not central sever all nodes are acting as both client and server all are getting and sending data to each other no server is managing them. Advantages: i.) High Performance ii.) Failure of single node doesn’t fails whole network. iii.) Easily scalable and robustness. Disadvantages: i.) We cannot administrate the network. ii.) Cannot filter the network traffic that what files are being shared. iii.) Locating peers and offering services is a challenging tasks. Example: Gnutella 0.4
  • 8.  Centralized P2P Model: In this model which there is a central server whose job is that it is maintaining all the records of files which each node have. When a node needs a file its requests to the server makes the lookup in its database and redirects the requesting node to that node which has file. So then this requesting node makes the direct connection with that node which has file. Note Server only searches file it doesnot transfer files. For transfering of files nodes make direct connection With each other. Continued….
  • 9. Continued….  Advantages: i.) Quick searches. ii.) Low bandwidth required. iii.) Searches can be filtered to some extent. iv.) Main advantage of this system is faster resource sharing.  Disadvantages: i.) Failure of server fails down whole network. ii.) This model is more easily be attacked. iii.) There limitation is that scalabilty of network is affected by use of server. Example: Napster, BitTorent.
  • 10. Hybird P2P Model:  Main advantage of Centralized model is faster and reliable resource sharing.But there limitation is that scalabiilty of system is affected by use of servers.  Main advantage of Decentralized model is that they take less time in locating the resource as compared to the Centralized Model.  Hybird Model is a type of Model which is introduced to take advantage of both centralized and decentralized system this model doesn’t uses the server hence scalability issue got resolved.  This model introduced the new concept of SUPERNODES.Hybird model uses Super nodes,they are the more powerful nodes then the other nodes they are dynamically choosen.By use of super nodes Resource locating become faster. By using supernodes we can take advantage of both decentralized search techniques and centralized search techniques.  Continued….
  • 11. Continued….  Advantages of Hybird Model: I.) Issue of scalability in centralized model resolved. ii.) We can fastly locate the resource by use of supernodes.  Disadvantages: i.) Searching is still based upon the flooding. ii.) Loss of Distribution , more centralized control. Example: Gnutella v0.6
  • 12. Skype Case Study:  Skype has basically a hybird peer to peer architecture such as Kazza or Gnutella v0.6.  There are three types of nodes in Skype Network. i.) Ordinary peers ii.) Super Nodes iii.) Central Login Server The login server stores all the usernames and All passwords and ensures that usernames are Unique across the skype namespace this node Authenticates the users. Continued…
  • 13. Continued….  Skype used TCP for signalling and both UDP and TCP for data transferring.  All users communication are encrypted using AES 256-bit.  Normal Login: i.) Skype client connects with the supernode. ii.) Skype client is authenticated using skype login server.
  • 14. Some important terminologies:  Seeder: Seeder is a one whose file is completely downloaded but its uploading.  Leecher: Some one who is downloading file.  Peer: Collective term for seeder and leecher.  Swarm : A group of peers sending or receiving simultaneously the same file.  Torrent file: A file contains information(Address/hostname) about Tracker.  Tracker : A server that manages the bit torrent transfer process. tracker is computer which acts as a server, and maintains a list of nodes which are participating in the system (ie. computers that are currently downloading or uploading file data). For a new node to join a Bittorrent network, it sends a message to the tracker requesting the IPs of some of the other participating nodes, so that it can connect to them and begin downloading. No actual file data is downloaded from the tracker; its job is simply to facilitate node discovery.
  • 15. Bit Torrent Architecture  Bit torrent is a centralized peer to peer Application.  Bit torrent uses a central server to maintain the records of all shared files of all nodes.  Below are four steps in Bit torrent.  Join (Torrent is created)  Publish (Torrent is published over internet)  Search (File is searched across the nodes)  Fetch (File is download)
  • 23. Query Flooding:  Query flooding is an old technique of file searching across the P2P network.  Gnutella v0.4 used that technique.  In this technique file is searched across the neighbours , if they don’t have file these neighbours search file around there neighbours hence whole network is searched.  In this technique we can limit the range of search.  Query flooding use is very poor it is not easily scalable hence now a days it is not used.  Now a days it is replaced by Query Routing such as Gnutella v6.0 is using Query Routing.  Distributed hashtables are also an alternative.
  • 24.  Thanks for learning: For Queries and Feedback email me at : Jahanzaib.niazi001@gmail.com Also you can download lecture notes from: http://www.bscsf11b.blogspot.com