Peer-to-peer

From WikiMD's Wellness Encyclopedia

P2P network.svg
Server-based-network.svg
SETI@home Multi-Beam screensaver.png
Unstructured peer-to-peer network diagram.png
Structured (DHT) peer-to-peer network diagram.png

Peer-to-peer (P2P) is a decentralized communications model in which each party has the same capabilities and either party can initiate a communication session. Unlike the traditional client-server model, in P2P networks, each node, called a peer, functions as both a client and a server. This model is used for various applications, including file sharing, content distribution, and collaborative work.

History[edit | edit source]

The concept of peer-to-peer networking dates back to the early days of the Internet. One of the earliest and most well-known P2P applications was Napster, a file-sharing service that allowed users to share music files. Napster's success led to the development of other P2P networks such as Gnutella and BitTorrent.

Architecture[edit | edit source]

In a P2P network, each peer is both a supplier and a consumer of resources, in contrast to the traditional client-server model where clients request resources and servers provide them. P2P networks can be classified into two types:

  • Unstructured P2P networks: These networks do not impose a specific structure on the overlay network by design. Peers randomly form connections to each other. Examples include Gnutella and Kazaa.
  • Structured P2P networks: These networks use a specific structure to organize the overlay network. They typically employ a distributed hash table (DHT) to ensure efficient data retrieval. Examples include BitTorrent and Chord (DHT).

Applications[edit | edit source]

P2P networks are used in a variety of applications, including:

  • File sharing: P2P networks are widely used for sharing large files, such as videos and software. BitTorrent is one of the most popular protocols for this purpose.
  • Content distribution: P2P networks can be used to distribute content more efficiently by leveraging the resources of multiple peers. This is often used in content delivery networks (CDNs).
  • Collaborative work: P2P networks can facilitate collaborative work by allowing multiple users to share and edit documents in real-time. Examples include Google Docs and Microsoft OneDrive.

Advantages and Disadvantages[edit | edit source]

Advantages[edit | edit source]

  • Scalability: P2P networks can scale easily as more peers join the network.
  • Fault tolerance: The decentralized nature of P2P networks makes them more resilient to failures.
  • Resource sharing: P2P networks can efficiently utilize the resources of all peers, reducing the load on any single node.

Disadvantages[edit | edit source]

  • Security: P2P networks can be more vulnerable to security threats, such as malware and unauthorized access.
  • Management: The decentralized nature of P2P networks can make them more difficult to manage and monitor.
  • Bandwidth consumption: P2P applications can consume significant amounts of bandwidth, which can be a concern for network administrators.

See Also[edit | edit source]

References[edit | edit source]

External Links[edit | edit source]

WikiMD
Navigation: Wellness - Encyclopedia - Health topics - Disease Index‏‎ - Drugs - World Directory - Gray's Anatomy - Keto diet - Recipes

Search WikiMD

Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD

WikiMD's Wellness Encyclopedia

Let Food Be Thy Medicine
Medicine Thy Food - Hippocrates

WikiMD is not a substitute for professional medical advice. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.

Contributors: Prab R. Tumpati, MD