SlideShare a Scribd company logo
1 of 32
Web and Social Computing
Speakers: Chandan ,Clement Robert and Kalthoom
 Objectives
 Peer to Peer Networks
 PeerSim
 Max and Min function Implementation and Results
 Conclusion
 Question & Answers
1. Describe PeerSim functionality
2. Describe the different modes of PeerSim .
3. Design new methods ( Maximum and Minimum ).
4. Explain the out put results .
 A peer-to-peer network, P2P, is considered to be a
type of network architecture composed of
contributors that make their resources available to
other contributors on the same network without the
need for a server to oversee the transfer of
information.
 A peer-to-peer network’s architecture is generally formed dynamically by an ad-
hoc type of addition of nodes, meaning the loss of a certain node does not have a
significant impact on the rest of the network.
 This aspect of peer-to-peer networks gives the system the ability to easily scale to
any size that may be needed for a certain application.
 There are generally two major
types, Structured and
Unstructured. These two types of
networks also contain even more
specific underlying types of
networks.
 To be considered an unstructured
peer-to-peer network, the network
must not use any algorithm for
organization or optimization of
the network.
 For unstructured peer-to-peer
networks there are three different
models which include Pure peer-
to-peer networks, Hybrid peer-to-
peer networks, and Centralized
peer-to-peer networks.
 In a pure peer-to-peer network, or sometimes called a purely decentralized
network, all nodes are of equal ability meaning that there are no nodes that have
any special infrastructure function that could affect the network.
 A great example of a popular purely decentralized peer-to-peer network is the
Gnutella network. The main purpose of the Gnutella network is for that of a file
sharing system.
 Infrastructural nodes are
allowed to exist and are
often a type of central
directory server.
 All clients connected to the
network must connect to
one of these servers.
 Users connection
information and List of files
are saved in the central
server.
 Added Supernodes.
 These Supernodes are nodes
that are dynamically assigned
the task of servicing a small
subpart of the peer network by
indexing and caching files
contained therein.
 A popular example of this
centralized peer-to-peer
network is the file sharing
network Kazaa.
 Structured peer-to-peer networks generally hold the traits of using some type of
algorithm for organization or optimization of the network.
 Structured peer-to-peer networks use some type of global protocol to ensure that
any node in the network can proficiently route a search to some peer that has a
desired file.
 By far the most popular type of structured peer-to-peer network is the distributed
hash table or DHT.
• N nodes in the network
• Consistent hashing is used to assign keys and
values to nodes and resources
- SHA-1 hash of node’s IP address produces
160-bit ID
- SHA-1 hash of file produces 160-bit key, k
• Resource with key K is stored at node with ID=k
- If node with ID=k doesn’t exist then resource
is stored in the node with next highest available ID
• If node n joins the network
- Reassign keys from successor(n)
• If node n leaves the network
- Reassign keys to successor(n)
 Supplier vs Consumer Concept.
 Unlike Client/Server networks peers in P2P don’t rely one single source for
acquiring their necessities. Multiple Participants are involved.
 P2P is relatively cheaper to setup and simpler than client server networks.
 P2P can operate on a basic PC operating system whereas Client/ Server networks
require special OS.
 One of the major advantages to a peer-to-peer network is that each time a new
node is connected to the network the total capacity of the system increases.
 This point differs from the client-server model standpoint since the addition of
new nodes to a network that connects to a set of number of servers could possibly
slow data transfers for all of the connected users.
 Another advantage in regards to a pure peer-to-peer network is that there is no
single point of failure in the network.
 When compared to the client-server model on this point if the server fails the
network is brought down since the server is unable to relay information to the
connected nodes.
 One of the weaknesses of peer-to-peer networks is that of security. Generally
speaking peer-to-peer networks are more susceptible to security problems.
 Another disadvantage of peer-to-peer networks is the high bandwidth usage
required. This high bandwidth usage has lead to Internet Service Providers
starting to throttle, or limit, peer-to-peer traffic
 Simulating Peer-to-Peer (P2P) overlay networks is a common problem for
researchers and developers:
 need to be scalable .
 are highly dynamic .
 PeerSim :is one of the most known among researchers.
 A Peer-to-Peer simulator
 Is to use a modular approach, as the preferred way of coding with it is to re-use
existing modules:
 construct and initialize the underlying network modules.
 handle the different protocols modules.
 control and modify the network modules.
 The engines consist of components which may be 'plugged in' .
 Two different modes:
 Cycle-based :based on a very simple time scheduling algorithm and is very efficient and
scalable.
 Event-based :scheduled through events .
 protocols: used to define the behavior of the different peers.
 nodes: represent the peer themselves in the P2P network.
 controls: control the simulation by perform the global initialization and analysis:
 Initializer
 Dynamic
 Observers
 Linkable :interface used to access and manage node’s properties
 Add neighbor
 Get neighbor
 Node’s degree
 Every simulation is
configured with the help
of a configuration file :a
simple ASCII file
Simulator
• Main() Method
CDSimulator
nextExperment()
• loadInitializers()
• loadControls()
• execute()
Controls
Eg:
AverageObserver
s
Protocol n
IncrementalStats
Max, Min, Nmax,
Nmin, AVG etc
Protocol1 Protocol 2
Config File
• Set of Protocols and ordering
• Set of Controls and Ordering
• Set of Initializers + ordering
AverageFunction
• nextCycle()
Generated in Eclipse by ObjectAid UML Explorer
 How much free space does the network have to offer?
 What is the average lifetime of a node in the network?
 How many documents do nodes share on the average?
 Which node(s) performed the most searches?
 What is the maximum number of downloads that some node supported during a
session
 Etc
MAYANK BAWA, HECTOR GARCIA-MOLINA, ARISTIDES GIONIS, RAJEEV MOTWANI
“Estimating Aggregates on a Peer-to-Peer Network”
Stanford University, CA 94305 USA
 AverageObserver
 IncrementalStats
 Config File  Output: The Min Function Remains Constants and
the Max Values decreases towards the Min
value
 Config File  Results: Max Remains the same and Min increases
towards the Max Value
PeerSim Output
 Data taken in Excel  Graph generated
 Graph Generated Data taken in Excel
 Lessons Learnt (slide)
 Clear understanding of how Peer to Peer Networks work
 PeerSim provides an easy way to simulate P2P Protocols without wasting resources
 Java Programming Revised.
 Limitations
 The PeerSim Source codes are somehow complex to understand
 Some Protocols implemented in PeerSim need some time to understand
Q& A

More Related Content

What's hot

Unit 3 cs6601 Distributed Systems
Unit 3 cs6601 Distributed SystemsUnit 3 cs6601 Distributed Systems
Unit 3 cs6601 Distributed SystemsNandakumar P
 
Citcism on Peer to peer networking
Citcism on Peer to peer networkingCitcism on Peer to peer networking
Citcism on Peer to peer networkingWebix.pk
 
Client Server Network By Usman Ihsan
Client Server Network By Usman IhsanClient Server Network By Usman Ihsan
Client Server Network By Usman IhsanSubhan_Virk_UAF
 
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 vs Client/Server Network By Ahnaf
Peer to Peer vs Client/Server Network By AhnafPeer to Peer vs Client/Server Network By Ahnaf
Peer to Peer vs Client/Server Network By Ahnafahnarokz
 
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
 
F233842
F233842F233842
F233842irjes
 
Filesharing using bittorrent protocol
Filesharing using bittorrent protocolFilesharing using bittorrent protocol
Filesharing using bittorrent protocolNishan Shetty
 
Intro to DTN and routing classification
Intro to DTN and routing classificationIntro to DTN and routing classification
Intro to DTN and routing classificationShivi Shukla
 
High performance and flexible networking
High performance and flexible networkingHigh performance and flexible networking
High performance and flexible networkingJohn Berkmans
 
Content-Centric Networking (CCN)
Content-Centric Networking (CCN)Content-Centric Networking (CCN)
Content-Centric Networking (CCN)Dilum Bandara
 
Efficient and secure content processing and distribution by cooperative inter...
Efficient and secure content processing and distribution by cooperative inter...Efficient and secure content processing and distribution by cooperative inter...
Efficient and secure content processing and distribution by cooperative inter...Mumbai Academisc
 
Distributed Database practicals
Distributed Database practicals Distributed Database practicals
Distributed Database practicals Vrushali Lanjewar
 

What's hot (20)

Overlay network
Overlay networkOverlay network
Overlay network
 
Unit 3 cs6601 Distributed Systems
Unit 3 cs6601 Distributed SystemsUnit 3 cs6601 Distributed Systems
Unit 3 cs6601 Distributed Systems
 
Citcism on Peer to peer networking
Citcism on Peer to peer networkingCitcism on Peer to peer networking
Citcism on Peer to peer networking
 
Client Server Network By Usman Ihsan
Client Server Network By Usman IhsanClient Server Network By Usman Ihsan
Client Server Network By Usman Ihsan
 
Peer to peer(p2 p)
Peer to peer(p2 p)Peer to peer(p2 p)
Peer to peer(p2 p)
 
Camp finall
Camp finallCamp finall
Camp finall
 
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 vs Client/Server Network By Ahnaf
Peer to Peer vs Client/Server Network By AhnafPeer to Peer vs Client/Server Network By Ahnaf
Peer to Peer vs Client/Server Network By Ahnaf
 
Peer topeer
Peer topeerPeer topeer
Peer topeer
 
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
 
F233842
F233842F233842
F233842
 
Journal Club- MPSS
Journal Club- MPSSJournal Club- MPSS
Journal Club- MPSS
 
Filesharing using bittorrent protocol
Filesharing using bittorrent protocolFilesharing using bittorrent protocol
Filesharing using bittorrent protocol
 
Intro to DTN and routing classification
Intro to DTN and routing classificationIntro to DTN and routing classification
Intro to DTN and routing classification
 
My Dissertation 2016
My Dissertation 2016My Dissertation 2016
My Dissertation 2016
 
High performance and flexible networking
High performance and flexible networkingHigh performance and flexible networking
High performance and flexible networking
 
ROUTING STRATEGIES IN DTN
ROUTING STRATEGIES IN DTNROUTING STRATEGIES IN DTN
ROUTING STRATEGIES IN DTN
 
Content-Centric Networking (CCN)
Content-Centric Networking (CCN)Content-Centric Networking (CCN)
Content-Centric Networking (CCN)
 
Efficient and secure content processing and distribution by cooperative inter...
Efficient and secure content processing and distribution by cooperative inter...Efficient and secure content processing and distribution by cooperative inter...
Efficient and secure content processing and distribution by cooperative inter...
 
Distributed Database practicals
Distributed Database practicals Distributed Database practicals
Distributed Database practicals
 

Similar to Final peersimp pt

Peer To Peer Networking
Peer To Peer NetworkingPeer To Peer Networking
Peer To Peer Networkingicanhasfay
 
Network archetecture
Network archetectureNetwork archetecture
Network archetectureshah fahad
 
International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)ijceronline
 
PeerToPeerComputing (1)
PeerToPeerComputing (1)PeerToPeerComputing (1)
PeerToPeerComputing (1)MurtazaB
 
International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)irjes
 
F233842
F233842F233842
F233842irjes
 
Peer peer messaging system (synopsis)
Peer peer messaging system (synopsis)Peer peer messaging system (synopsis)
Peer peer messaging system (synopsis)Mumbai Academisc
 
Cloud data management
Cloud data managementCloud data management
Cloud data managementambitlick
 
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
 
L4Network Architecture.pptx
L4Network Architecture.pptxL4Network Architecture.pptx
L4Network Architecture.pptxGarimaJain745610
 
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
 
2014 IEEE DOTNET NETWORKING PROJECT A proximity aware interest-clustered p2p ...
2014 IEEE DOTNET NETWORKING PROJECT A proximity aware interest-clustered p2p ...2014 IEEE DOTNET NETWORKING PROJECT A proximity aware interest-clustered p2p ...
2014 IEEE DOTNET NETWORKING PROJECT A proximity aware interest-clustered p2p ...IEEEFINALSEMSTUDENTSPROJECTS
 
IEEE 2014 DOTNET NETWORKING PROJECTS A proximity aware interest-clustered p2p...
IEEE 2014 DOTNET NETWORKING PROJECTS A proximity aware interest-clustered p2p...IEEE 2014 DOTNET NETWORKING PROJECTS A proximity aware interest-clustered p2p...
IEEE 2014 DOTNET NETWORKING PROJECTS A proximity aware interest-clustered p2p...IEEEMEMTECHSTUDENTPROJECTS
 
unit 4 cds computer networking notesnotes.pdf
unit 4 cds computer networking notesnotes.pdfunit 4 cds computer networking notesnotes.pdf
unit 4 cds computer networking notesnotes.pdfshubhangisonawane6
 

Similar to Final peersimp pt (20)

Peer To Peer Networking
Peer To Peer NetworkingPeer To Peer Networking
Peer To Peer Networking
 
Kinds of networks
Kinds of networksKinds of networks
Kinds of networks
 
Network archetecture
Network archetectureNetwork archetecture
Network archetecture
 
International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)
 
PeerToPeerComputing (1)
PeerToPeerComputing (1)PeerToPeerComputing (1)
PeerToPeerComputing (1)
 
International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)
 
F233842
F233842F233842
F233842
 
Peer peer messaging system (synopsis)
Peer peer messaging system (synopsis)Peer peer messaging system (synopsis)
Peer peer messaging system (synopsis)
 
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
 
Compare peer
Compare peerCompare peer
Compare peer
 
Cloud data management
Cloud data managementCloud data management
Cloud data management
 
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)
 
DISTRIBUTED SYSTEM 16M.docx
DISTRIBUTED SYSTEM 16M.docxDISTRIBUTED SYSTEM 16M.docx
DISTRIBUTED SYSTEM 16M.docx
 
L4Network Architecture.pptx
L4Network Architecture.pptxL4Network Architecture.pptx
L4Network Architecture.pptx
 
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
 
2014 IEEE DOTNET NETWORKING PROJECT A proximity aware interest-clustered p2p ...
2014 IEEE DOTNET NETWORKING PROJECT A proximity aware interest-clustered p2p ...2014 IEEE DOTNET NETWORKING PROJECT A proximity aware interest-clustered p2p ...
2014 IEEE DOTNET NETWORKING PROJECT A proximity aware interest-clustered p2p ...
 
IEEE 2014 DOTNET NETWORKING PROJECTS A proximity aware interest-clustered p2p...
IEEE 2014 DOTNET NETWORKING PROJECTS A proximity aware interest-clustered p2p...IEEE 2014 DOTNET NETWORKING PROJECTS A proximity aware interest-clustered p2p...
IEEE 2014 DOTNET NETWORKING PROJECTS A proximity aware interest-clustered p2p...
 
COMPUTER NETWORKS
COMPUTER NETWORKSCOMPUTER NETWORKS
COMPUTER NETWORKS
 
unit 4 cds computer networking notesnotes.pdf
unit 4 cds computer networking notesnotes.pdfunit 4 cds computer networking notesnotes.pdf
unit 4 cds computer networking notesnotes.pdf
 
04 Client Server Computing
04 Client Server Computing04 Client Server Computing
04 Client Server Computing
 

Recently uploaded

SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
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
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
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
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
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
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
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
 
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
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 

Recently uploaded (20)

SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
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
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
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...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
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
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
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
 
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
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 

Final peersimp pt

  • 1. Web and Social Computing Speakers: Chandan ,Clement Robert and Kalthoom
  • 2.  Objectives  Peer to Peer Networks  PeerSim  Max and Min function Implementation and Results  Conclusion  Question & Answers
  • 3. 1. Describe PeerSim functionality 2. Describe the different modes of PeerSim . 3. Design new methods ( Maximum and Minimum ). 4. Explain the out put results .
  • 4.  A peer-to-peer network, P2P, is considered to be a type of network architecture composed of contributors that make their resources available to other contributors on the same network without the need for a server to oversee the transfer of information.
  • 5.  A peer-to-peer network’s architecture is generally formed dynamically by an ad- hoc type of addition of nodes, meaning the loss of a certain node does not have a significant impact on the rest of the network.  This aspect of peer-to-peer networks gives the system the ability to easily scale to any size that may be needed for a certain application.
  • 6.  There are generally two major types, Structured and Unstructured. These two types of networks also contain even more specific underlying types of networks.
  • 7.  To be considered an unstructured peer-to-peer network, the network must not use any algorithm for organization or optimization of the network.  For unstructured peer-to-peer networks there are three different models which include Pure peer- to-peer networks, Hybrid peer-to- peer networks, and Centralized peer-to-peer networks.
  • 8.  In a pure peer-to-peer network, or sometimes called a purely decentralized network, all nodes are of equal ability meaning that there are no nodes that have any special infrastructure function that could affect the network.  A great example of a popular purely decentralized peer-to-peer network is the Gnutella network. The main purpose of the Gnutella network is for that of a file sharing system.
  • 9.  Infrastructural nodes are allowed to exist and are often a type of central directory server.  All clients connected to the network must connect to one of these servers.  Users connection information and List of files are saved in the central server.
  • 10.  Added Supernodes.  These Supernodes are nodes that are dynamically assigned the task of servicing a small subpart of the peer network by indexing and caching files contained therein.  A popular example of this centralized peer-to-peer network is the file sharing network Kazaa.
  • 11.  Structured peer-to-peer networks generally hold the traits of using some type of algorithm for organization or optimization of the network.  Structured peer-to-peer networks use some type of global protocol to ensure that any node in the network can proficiently route a search to some peer that has a desired file.  By far the most popular type of structured peer-to-peer network is the distributed hash table or DHT.
  • 12. • N nodes in the network • Consistent hashing is used to assign keys and values to nodes and resources - SHA-1 hash of node’s IP address produces 160-bit ID - SHA-1 hash of file produces 160-bit key, k • Resource with key K is stored at node with ID=k - If node with ID=k doesn’t exist then resource is stored in the node with next highest available ID • If node n joins the network - Reassign keys from successor(n) • If node n leaves the network - Reassign keys to successor(n)
  • 13.
  • 14.  Supplier vs Consumer Concept.  Unlike Client/Server networks peers in P2P don’t rely one single source for acquiring their necessities. Multiple Participants are involved.  P2P is relatively cheaper to setup and simpler than client server networks.  P2P can operate on a basic PC operating system whereas Client/ Server networks require special OS.
  • 15.  One of the major advantages to a peer-to-peer network is that each time a new node is connected to the network the total capacity of the system increases.  This point differs from the client-server model standpoint since the addition of new nodes to a network that connects to a set of number of servers could possibly slow data transfers for all of the connected users.  Another advantage in regards to a pure peer-to-peer network is that there is no single point of failure in the network.  When compared to the client-server model on this point if the server fails the network is brought down since the server is unable to relay information to the connected nodes.
  • 16.  One of the weaknesses of peer-to-peer networks is that of security. Generally speaking peer-to-peer networks are more susceptible to security problems.  Another disadvantage of peer-to-peer networks is the high bandwidth usage required. This high bandwidth usage has lead to Internet Service Providers starting to throttle, or limit, peer-to-peer traffic
  • 17.  Simulating Peer-to-Peer (P2P) overlay networks is a common problem for researchers and developers:  need to be scalable .  are highly dynamic .  PeerSim :is one of the most known among researchers.
  • 18.  A Peer-to-Peer simulator  Is to use a modular approach, as the preferred way of coding with it is to re-use existing modules:  construct and initialize the underlying network modules.  handle the different protocols modules.  control and modify the network modules.  The engines consist of components which may be 'plugged in' .
  • 19.  Two different modes:  Cycle-based :based on a very simple time scheduling algorithm and is very efficient and scalable.  Event-based :scheduled through events .
  • 20.  protocols: used to define the behavior of the different peers.  nodes: represent the peer themselves in the P2P network.  controls: control the simulation by perform the global initialization and analysis:  Initializer  Dynamic  Observers  Linkable :interface used to access and manage node’s properties  Add neighbor  Get neighbor  Node’s degree
  • 21.  Every simulation is configured with the help of a configuration file :a simple ASCII file
  • 22. Simulator • Main() Method CDSimulator nextExperment() • loadInitializers() • loadControls() • execute() Controls Eg: AverageObserver s Protocol n IncrementalStats Max, Min, Nmax, Nmin, AVG etc Protocol1 Protocol 2 Config File • Set of Protocols and ordering • Set of Controls and Ordering • Set of Initializers + ordering AverageFunction • nextCycle()
  • 23. Generated in Eclipse by ObjectAid UML Explorer
  • 24.  How much free space does the network have to offer?  What is the average lifetime of a node in the network?  How many documents do nodes share on the average?  Which node(s) performed the most searches?  What is the maximum number of downloads that some node supported during a session  Etc MAYANK BAWA, HECTOR GARCIA-MOLINA, ARISTIDES GIONIS, RAJEEV MOTWANI “Estimating Aggregates on a Peer-to-Peer Network” Stanford University, CA 94305 USA
  • 25.
  • 27.  Config File  Output: The Min Function Remains Constants and the Max Values decreases towards the Min value
  • 28.  Config File  Results: Max Remains the same and Min increases towards the Max Value PeerSim Output
  • 29.  Data taken in Excel  Graph generated
  • 30.  Graph Generated Data taken in Excel
  • 31.  Lessons Learnt (slide)  Clear understanding of how Peer to Peer Networks work  PeerSim provides an easy way to simulate P2P Protocols without wasting resources  Java Programming Revised.  Limitations  The PeerSim Source codes are somehow complex to understand  Some Protocols implemented in PeerSim need some time to understand
  • 32. Q& A