Peer To Peer Network

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 12

PEER TO

PEER
NETWORK
CONTENTS

Introduction
Types of P2P Network
i. Centralized Network
eg:Napster
ii. Decentralized Network
 Unstructured
eg:Gnutella
 Structured
INTRODUCTION
Unlike client-server, P2P model does not distuinguish between client or
server, instead each node can either be a client or server depending on
wheather the node is requesting or providing the services. Each node is
considered as peer.
Centralized Network
There is a presence of directory in which the listing of peers and what
they offer are present, to do this task it uses client-server paradigm.But
storing and downloading are done using P2P paradigm, thus it is reffered
as hybrid P2P network.
Napster

How it used to work?(1)

napster.com
1. File list is
uploaded

users
How it used to work?(2)

2. User
requests Request
search at and
results
server.

user
How it used to work?(3)

napster.com

3. User pings hosts


that apparently
have data.

Looks for best pings pings


transfer rate.
user
How it used to work?(4)

napster.com

4. User
retrieves file

Retrieves
file

user
Decentralized
 A decentralized P2P network does not depend on a centralized
directory system.
 Peers arrange themselves into an overlay network.
 Depending on how the nodes in the overlay network are linked, it
is classified into two types.
Unstructured
 In a unstructured P2P network, the nodes are linked randomly.
 A search in an unstructured P2P network is not very efficient
because a query to find a file must be flooded through the network,
which produces significant traffic and still the query may not be
resolved.
Eg:Gnutella

Node X
node W

node A
Structured
 It uses a predefined set of rules to link nodes so that a query can be
effectively and efficiently resolved.
 Common technique used is DHT.

You might also like