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

What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 

Recently uploaded (20)

What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 

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