Peer to Peer (P2P) File Sharing
Peer to Peer (P2P)
P2P allow sharing of files, printers and other resources across
all of the devices.
P2P is an approach to computer networking where all
computers share equivalent responsibility for processing
data.
File Sharing
File sharing is the practice of making files available for the
users to download over the Internet and smaller networks.
File sharing follows the P2P peer model, where the files are
stored on and served by personal computers of the users.
P2P File Sharing
The term P2P file sharing is an umbrella term used to
describe any protocol or method whereby users can
share files with other users.
P2P software can simply scan the computers to search for
files to share.
Napster
Napster pioneered the concept of peer-to-peer file
sharing.
Individual people stored files that they wanted to share
(typically MP3 music files) on their hard disks and shared
them directly with other people.
Three Functions:
Search Engine: Dedicated to finding MP3 files only.
File sharing: The ability to trade MP3 files directly without
having to use a centralised server for storage.
Internet Relay Chat (IRC): A way to find and chat with
other MP3 users while online.
How it works?
Bit Torrent
BitTorrent is a decentralized peer to peer (P2P)
distribution of content which uses the upload bandwidth
of each individual who is downloading the content, and
those who have downloaded, to transfer the content.
BitTorrent is a protocol that enables fast downloading of
large files using minimum Internet bandwidth.
What BitTorrent does?
BitTorrent is a protocol that offloads some of the file
tracking work to a central server (called a tracker).
BitTorrent uses a principal called tit-for-tat.
BitTorrent downloads different pieces of the file you
want simultaneously from multiple computers.
How does it work?
KazaA
Kazaa is a peer-to-peer (P2P) network that works
similarly to the way the original Napster did.
It was designed as a sort of open forum where users
could share all types of files -- movies, books, games, etc.
To transfer data between users , Kazaa uses Fast track
Protocol
Fast Track Protocol
Fast track is so called “second generation “ P2P protocol.
Fast track protocol is closed protocol.
The system divides Kazaa users into two groups:
Supernodes, Ordinary nodes
FastTrack Architecture
Socket Programming
TCP/IP implementations offer a programming interface
that allows for full duplex communication called socket
programming.
Seckets are protocol independent method of creating
connection between process.
Socket