SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed SystemSunita Sahu
 
SDN( Software Defined Network) and NFV(Network Function Virtualization) for I...
SDN( Software Defined Network) and NFV(Network Function Virtualization) for I...SDN( Software Defined Network) and NFV(Network Function Virtualization) for I...
SDN( Software Defined Network) and NFV(Network Function Virtualization) for I...Sagar Rai
 
Chapter 4 a interprocess communication
Chapter 4 a interprocess communicationChapter 4 a interprocess communication
Chapter 4 a interprocess communicationAbDul ThaYyal
 
Packet switching
Packet switchingPacket switching
Packet switchingasimnawaz54
 
Types of firewall
Types of firewallTypes of firewall
Types of firewallPina Parmar
 
Design Goals of Distributed System
Design Goals of Distributed SystemDesign Goals of Distributed System
Design Goals of Distributed SystemAshish KC
 
Software Defined Network - SDN
Software Defined Network - SDNSoftware Defined Network - SDN
Software Defined Network - SDNVenkata Naga Ravi
 
Distributed Systems
Distributed SystemsDistributed Systems
Distributed SystemsRupsee
 
Network Management
Network ManagementNetwork Management
Network Managementazura787
 
Distributed system architecture
Distributed system architectureDistributed system architecture
Distributed system architectureYisal Khan
 
CS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSCS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSKathirvel Ayyaswamy
 
Types of Load distributing algorithm in Distributed System
Types of Load distributing algorithm in Distributed SystemTypes of Load distributing algorithm in Distributed System
Types of Load distributing algorithm in Distributed SystemDHIVYADEVAKI
 

Was ist angesagt? (20)

Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed System
 
SDN( Software Defined Network) and NFV(Network Function Virtualization) for I...
SDN( Software Defined Network) and NFV(Network Function Virtualization) for I...SDN( Software Defined Network) and NFV(Network Function Virtualization) for I...
SDN( Software Defined Network) and NFV(Network Function Virtualization) for I...
 
Chapter 4 a interprocess communication
Chapter 4 a interprocess communicationChapter 4 a interprocess communication
Chapter 4 a interprocess communication
 
Transport layer
Transport layer Transport layer
Transport layer
 
Distributed Operating System_4
Distributed Operating System_4Distributed Operating System_4
Distributed Operating System_4
 
Cluster Computing
Cluster ComputingCluster Computing
Cluster Computing
 
Packet switching
Packet switchingPacket switching
Packet switching
 
Types of firewall
Types of firewallTypes of firewall
Types of firewall
 
Design Goals of Distributed System
Design Goals of Distributed SystemDesign Goals of Distributed System
Design Goals of Distributed System
 
Trends in distributed systems
Trends in distributed systemsTrends in distributed systems
Trends in distributed systems
 
Virtual LAN
Virtual LANVirtual LAN
Virtual LAN
 
Software Defined Network - SDN
Software Defined Network - SDNSoftware Defined Network - SDN
Software Defined Network - SDN
 
Distributed Systems
Distributed SystemsDistributed Systems
Distributed Systems
 
Network Management
Network ManagementNetwork Management
Network Management
 
Distributed system architecture
Distributed system architectureDistributed system architecture
Distributed system architecture
 
Introduction to Software Defined Networking (SDN)
Introduction to Software Defined Networking (SDN)Introduction to Software Defined Networking (SDN)
Introduction to Software Defined Networking (SDN)
 
CS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSCS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMS
 
Types of Load distributing algorithm in Distributed System
Types of Load distributing algorithm in Distributed SystemTypes of Load distributing algorithm in Distributed System
Types of Load distributing algorithm in Distributed System
 
OSI Layers
OSI LayersOSI Layers
OSI Layers
 
Presentation on router
Presentation on routerPresentation on router
Presentation on router
 

Andere mochten auch

Peer to peer Networks
Peer to peer Networks Peer to peer Networks
Peer to peer Networks Nicola Cerami
 
peer to peer and client server model
peer to peer and client server modelpeer to peer and client server model
peer to peer and client server modelBharath Nair
 
Peer To Peer Networking
Peer To Peer NetworkingPeer To Peer Networking
Peer To Peer Networkingicanhasfay
 
Fundamental counting principle powerpoint
Fundamental counting principle powerpointFundamental counting principle powerpoint
Fundamental counting principle powerpointmesmith1
 
Counting Technique, Permutation, Combination
Counting Technique, Permutation, CombinationCounting Technique, Permutation, Combination
Counting Technique, Permutation, CombinationChie Pegollo
 

Andere mochten auch (6)

Peer to peer Networks
Peer to peer Networks Peer to peer Networks
Peer to peer Networks
 
peer to peer and client server model
peer to peer and client server modelpeer to peer and client server model
peer to peer and client server model
 
Peer To Peer Networking
Peer To Peer NetworkingPeer To Peer Networking
Peer To Peer Networking
 
Fundamental counting principle powerpoint
Fundamental counting principle powerpointFundamental counting principle powerpoint
Fundamental counting principle powerpoint
 
Counting Technique, Permutation, Combination
Counting Technique, Permutation, CombinationCounting Technique, Permutation, Combination
Counting Technique, Permutation, Combination
 
Network security
Network securityNetwork security
Network security
 

Ähnlich wie 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
 

Ähnlich wie Peer to peer system (20)

Peer to peer data management
Peer to peer data managementPeer to peer data management
Peer to peer data management
 
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
 
P2P-Network.ppt
P2P-Network.pptP2P-Network.ppt
P2P-Network.ppt
 

Kürzlich hochgeladen

Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 

Kürzlich hochgeladen (20)

Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
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
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 

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