The Wayback Machine - https://web.archive.org/web/20240926154214/https://www.geeksforgeeks.org/what-is-p2p-peer-to-peer-process/
Open In App

What is P2P (Peer-to-Peer Process)?

Last Updated : 23 Jul, 2023
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

A peer-to-peer network is a simple network of computers. It first came into existence in the late 1970s. Here each computer acts as a node for file sharing within the formed network. Here each node acts as a server and thus there is no central server in the network. This allows the sharing of a huge amount of data. The tasks are equally divided amongst the nodes. Each node connected in the network shares an equal workload. For the network to stop working, all the nodes need to individually stop working. This is because each node works independently. 

History of P2P Networks

Before the development of P2P, USENET came into existence in 1979. The network enabled the users to read and post messages. Unlike the forums we use today, it did not have a central server. It is used to copy the new messages to all the servers of the node. 

  • In the 1980s the first use of P2P networks occurred after personal computers were introduced.
  • In August 1988, the internet relay chat was the first P2P network built to share text and chat.
  • In June 1999, Napster was developed which was a file-sharing P2P software. It could be used to share audio files as well. This software was shut down due to the illegal sharing of files. But the concept of network sharing i.e P2P became popular. 
  • In June 2000, Gnutella was the first decentralized P2P file sharing network. This allowed users to access files on other users’ computers via a designated folder.

Types of P2P networks

  1. Unstructured P2P networks: In this type of P2P network, each device is able to make an equal contribution. This network is easy to build as devices can be connected randomly in the network. But being unstructured, it becomes difficult to find content. For example, Napster, Gnutella, etc.
  2. Structured P2P networks: It is designed using software that creates a virtual layer in order to put the nodes in a specific structure. These are not easy to set up but can give easy access to users to the content. For example, P-Grid, Kademlia, etc. 
  3. Hybrid P2P networks: It combines the features of both P2P networks and client-server architecture. An example of such a network is to find a node using the central server.

Features of P2P network 

  • These networks do not involve a large number of nodes, usually less than 12. All the computers in the network store their own data but this data is accessible by the group. 
  • Unlike client-server networks, P2P uses resources and also provides them. This results in additional resources if the number of nodes increases. It requires specialized software. It allows resource sharing among the network. 
  • Since the nodes act as clients and servers, there is a constant threat of attack. 
  • Almost all OS today support P2P networks. 

P2P Network Architecture

In the P2P network architecture, the computers connect with each other in a workgroup to share files, and access to internet and printers. 

  • Each computer in the network has the same set of responsibilities and capabilities.
  • Each device in the network serves as both a client and server.
  • The architecture is useful in residential areas, small offices, or small companies where each computer act as an independent workstation and stores the data on its hard drive. 
  • Each computer in the network has the ability to share data with other computers in the network.
  • The architecture is usually composed of workgroups of 12 or more computers. 
P2P Network

 

How Does P2P Network Work?

Let’s understand the working of the Peer-to-Peer network through an example. Suppose, the user wants to download a file through the peer-to-peer network then the download will be handled in this way:

  • If the peer-to-peer software is not already installed, then the user first has to install the peer-to-peer software on his computer.
  • This creates a virtual network of peer-to-peer application users.
  • The user then downloads the file, which is received in bits that come from multiple computers in the network that have already that file.
  • The data is also sent from the user’s computer to other computers in the network that ask for the data that exist on the user’s computer.

Thus, it can be said that in the peer-to-peer network the file transfer load is distributed among the peer computers.

How to Use a P2P Network Efficiently?

Firstly secure your network via privacy solutions.  Below are some of the measures to keep the P2P network secure:

  • Share and download legal files: Double-check the files that are being downloaded before sharing them with other employees. It is very important to make sure that only legal files are downloaded.
  • Design strategy for sharing: Design a strategy that suits the underlying architecture in order to manage applications and underlying data.
  • Keep security practices up-to-date: Keep a check on the cyber security threats which might prevail in the network. Invest in good quality software that can sustain attacks and prevent the network from being exploited. Update your software regularly. 
  • Scan all downloads: This is used to constantly check and scan all the files for viruses before downloading them. This helps to ensure that safe files are being downloaded and in case, any file with potential threat is detected then report to the IT Staff.
  • Proper shutdown of P2P networking after use: It is very important to correctly shut down the software to avoid unnecessary access to third persons to the files in the network. Even if the windows are closed after file sharing but the software is still active then the unauthorized user can still gain access to the network which can be a major security breach in the network.

Applications of P2P Network

Below are some of the common uses of P2P network:

  • File sharing: P2P network is the most convenient, cost-efficient method for file sharing for businesses. Using this type of network there is no need for intermediate servers to transfer the file. 
  • Blockchain: The P2P architecture is based on the concept of decentralization. When a peer-to-peer network is enabled on the blockchain it helps in the maintenance of a complete replica of the records ensuring the accuracy of the data at the same time. At the same time, peer-to-peer networks ensure security also. 
  • Direct messaging: P2P network provides a secure, quick, and efficient way to communicate. This is possible due to the use of encryption at both the peers and access to easy messaging tools.
  • Collaboration: The easy file sharing also helps to build collaboration among other peers in the network. 
  • File sharing networks: Many P2P file sharing networks like G2, and eDonkey have popularized peer-to-peer technologies. 
  • Content distribution: In a P2P network, unline the client-server system so the clients can both provide and use resources. Thus, the content serving capacity of the P2P networks can actually increase as more users begin to access the content. 
  • IP Telephony: Skype is one good example of a P2P application in VoIP. 

Advantages of P2P Network

  • Easy to maintain: The network is easy to maintain because each node is independent of the other.
  • Less costly: Since each node acts as a server, therefore the cost of the central server is saved. Thus, there is no need to buy an expensive server.
  • No network manager: In a P2P network since each node manages his or her own computer, thus there is no need for a network manager.
  • Adding nodes is easy: Adding, deleting, and repairing nodes in this network is easy.
  • Less network traffic: In a P2P network, there is less network traffic than in a client/ server network.

Disadvantages of P2P Network

  • Data is vulnerable: Because of no central server, data is always vulnerable to getting lost because of no backup.
  • Less secure: It becomes difficult to secure the complete network because each node is independent. 
  • Slow performance: In a P2P network, each computer is accessed by other computers in the network which slows down the performance of the user.
  • Files hard to locate: In a P2P network, the files are not centrally stored, rather they are stored on individual computers which makes it difficult to locate the files.

Examples of P2P networks 

P2P networks can be basically categorized into three levels. 

  • The first level is the basic level which uses a USB to create a P2P network between two systems. 
  • The second is the intermediate level which involves the usage of copper wires in order to connect more than two systems. 
  • The third is the advanced level which uses software to establish protocols in order to manage numerous devices across the internet.

Some of the popular P2P networks are Gnutella, BitTorrent, eDonkey, Kazaa, Napster, and Skype.



Previous Article
Next Article

Similar Reads

P2P (Peer To Peer) File Sharing
In Computer Networking, P2P (Peer-to-Peer) is a file-sharing technology, that allows users to access mainly the multimedia files like videos, music, e-books, games, etc. The individual users in this network are referred to as peers. The peers request files from other peers by establishing TCP or UDP connections. How Does P2P (Peer-to-Peer) Work?A p
6 min read
What is APPN(Advanced Peer to Peer Networking)?
Advanced Peer-to-Peer Networking (APPN) is part of an IBM Systems Network Architecture (SNA). It involves protocols in which a set of computers are not dominated by a central server or any other piece of hardware rather these protocols allow computers to communicate among themselves. Need of Peer-to-Peer Networking The advent of the worldwide web c
4 min read
What is APPC(Advanced Peer to Peer Communication)?
APPC (Advanced Peer-to-Peer Communication) is an IBM-developed protocol used for communication between two or more programs running on different computers in a network. It is a peer-to-peer protocol that allows applications to exchange data and commands with each other. APPC operates at the session layer of the OSI model and provides reliable commu
5 min read
Difference between Client-Server and Peer-to-Peer Network
In the world of network architecture, two fundamental models are widely utilized to structure data exchange and resource sharing. For the purpose of this discussion, two types of networks are available; the Client-Server Network and the Peer-to-Peer Network. All the models have their strengths, weaknesses, and appropriate applications that make the
4 min read
How P2P can scale by itself
In this article, we will discuss the overview of client-server and peer to peer and will understand both with the help of example and will discuss how P2P can scale by itself in both cases. Let's discuss it one by one. Overview :To understand how peer-to-peer can scale and to know why it is better than client-server architecture in some ways let's
6 min read
How does a switch learn PC MAC Address before the PING process?
The switch has some intelligence and its networking device operates in the Layer 2 Data link layer in the OSI model. Here, we will see how the switch learns the MAC address of an end device PC even before the PING process between Switch and PC. Let's take an example of 2 PC'S connected to Switch. Note: There are no assigned IP Addresses to PCs. The
3 min read
Encoding and Decoding in Communication Process
In this article, we will go through the concept of Encoding and Decoding the message in Communication Process in Distributed Systems in detail. Encoding and Decoding in Communication Process: Encoding refers to "Codes that are used to convert a body of information from one system to another." The secret meaning of a code is represented by a set of
4 min read
Networks and Process of Network Communications
If someone is interested or willing to join the world of Cyber Security he/she must be familiar with how Network Communication takes place. As the basic job of a cybersecurity analyst is to trace the event occur on the network. The record of the incident is stored in log files in systems involving in the network these log files contain the logs of
5 min read
TCP 3-Way Handshake Process
The TCP 3-Way Handshake is a fundamental process that establishes a reliable connection between two devices over a TCP/IP network. It involves three steps: SYN (Synchronize), SYN-ACK (Synchronize-Acknowledge), and ACK (Acknowledge). During the handshake, the client and server exchange initial sequence numbers and confirm the connection establishmen
7 min read
Computer Network Tutorial
A computer network is a collection of computers or devices connected to share resources. Any device which can share or receive the data is called a Node. Through which the information or data propagate is known as channels, It can be guided or unguided. In this Computer network tutorial, you’ll learn basic to advanced concepts like the Basics of co
10 min read
Difference Between OSI Model and TCP/IP Model
Data communication is a process or act in which we can send or receive data. Understanding the fundamental structures of networking is crucial for anyone working with computer systems and communication. For data communication two models are available, the OSI (Open Systems Interconnection) Model, and the TCP/IP (Transmission Control Protocol/Intern
5 min read
Advanced Encryption Standard (AES)
Advanced Encryption Standard (AES) is a specification for the encryption of electronic data established by the U.S. National Institute of Standards and Technology (NIST) in 2001. AES is widely used today as it is much stronger than DES and triple DES despite being harder to implement. In this article, we will cover the AES, the Working of Cipher an
8 min read
Top 50 Plus Networking Interview Questions and Answers for 2024
Networking is defined as connected devices that may exchange data or information and share resources. A computer network connects computers to exchange data via a communication media. Computer networking is the most often asked question at leading organizations such Cisco, Accenture, Uber, Airbnb, Google, Nvidia, Amazon, and many others. To get int
15+ min read
Types of Computer Networks
A computer network is a cluster of computers over a shared communication path that works to share resources from one computer to another, provided by or located on the network nodes. In this article, we will discuss computer networks and their types. What is a Computer Network?A computer network is a system that connects many independent computers
11 min read
Cryptography and its Types
Cryptography is a technique of securing communication by converting plain text into ciphertext. It involves various algorithms and protocols to ensure data confidentiality, integrity, authentication, and non-repudiation. In this article, we will discuss cryptography and its types. What is Cryptography?Cryptography is a technique of securing informa
7 min read
Difference Between IPv4 and IPv6
The address through which any computer communicates with our computer is simply called an Internet Protocol Address or IP address. For example, if we want to load a web page or download something, we require the address to deliver that particular file or webpage. That address is called an IP Address. There are two versions of IP: IPv4 and IPv6. IPv
7 min read
Differences between TCP and UDP
Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) both are protocols of the Transport Layer Protocols. TCP is a connection-oriented protocol whereas UDP is a part of the Internet Protocol suite, referred to as the UDP/IP suite. Unlike TCP, it is an unreliable and connectionless protocol. In this article, we will discuss the diffe
9 min read
Types of Transmission Media
Transmission media refer to the physical pathways through which data is transmitted from one device to another within a network. These pathways can be wired or wireless. The choice of medium depends on factors like distance, speed, and interference. In this article, we will discuss the transmission media. What is Transmission Media? A transmission
8 min read
Hamming Code in Computer Network
Hamming code is an error-correcting code used to ensure data accuracy during transmission or storage. Hamming code detects and corrects the errors that can occur when the data is moved or stored from the sender to the receiver. This simple and effective method helps improve the reliability of communication systems and digital storage. It adds extra
11 min read
TCP/IP Model
The TCP/IP model is a fundamental framework for computer networking. It stands for Transmission Control Protocol/Internet Protocol, which are the core protocols of the Internet. This model defines how data is transmitted over networks, ensuring reliable communication between devices. It consists of four layers: the Link Layer, the Internet Layer, t
13 min read
User Datagram Protocol (UDP)
User Datagram Protocol (UDP) is a Transport Layer protocol. UDP is a part of the Internet Protocol suite, referred to as UDP/IP suite. Unlike TCP, it is an unreliable and connectionless protocol. So, there is no need to establish a connection before data transfer. The UDP helps to establish low-latency and loss-tolerating connections over the netwo
10 min read
What is OSI Model? - Layers of OSI Model
OSI stands for Open Systems Interconnection , where open stands to say non-proprietary. It is a 7-layer architecture with each layer having specific functionality to perform. All these 7 layers work collaboratively to transmit the data from one person to another across the globe. The OSI reference model was developed by ISO - 'International Organiz
15+ min read
Basics of Computer Networking
Computer networking is a cornerstone of modern technology, enabling the interconnected systems that power the Internet, business communications, and everyday digital interactions. Understanding the fundamentals of computer networking is essential for anyone involved in technology, from enthusiasts to professionals. This article will explore the bas
12 min read
RSA Algorithm in Cryptography
RSA algorithm is an asymmetric cryptography algorithm. Asymmetric means that it works on two different keys i.e. Public Key and Private Key. As the name describes the Public Key is given to everyone and the Private key is kept private. An example of asymmetric cryptography: A client (for example browser) sends its public key to the server and reque
15+ min read
Types of Network Topology
Network topology refers to the arrangement of different elements like nodes, links, or devices in a computer network. It defines how these components are connected and interact with each other. Understanding various types of network topologies helps in designing efficient and robust networks. Common types include bus, star, ring, mesh, and tree top
12 min read
Domain Name System (DNS) in Application Layer
The Domain Name System (DNS) is like the internet's phone book. It helps you find websites by translating easy-to-remember names (like www.example.com) into the numerical IP addresses (like 192.0.2.1) that computers use to locate each other on the internet. Without DNS, you would have to remember long strings of numbers to visit your favorite websi
9 min read
Caesar Cipher in Cryptography
The Caesar Cipher is one of the simplest and oldest methods of encrypting messages, named after Julius Caesar, who reportedly used it to protect his military communications. This technique involves shifting the letters of the alphabet by a fixed number of places. For example, with a shift of three, the letter 'A' becomes 'D', 'B' becomes 'E', and s
12 min read
Error Detection in Computer Networks
Error is a condition when the receiver's information does not match the sender's. Digital signals suffer from noise during transmission that can introduce errors in the binary bits traveling from sender to receiver. That means a 0 bit may change to 1 or a 1 bit may change to 0.  Data (Implemented either at the Data link layer or Transport Layer of
7 min read
Network Devices (Hub, Repeater, Bridge, Switch, Router, Gateways and Brouter)
Network Devices: Network devices, also known as networking hardware, are physical devices that allow hardware on a computer network to communicate and interact with one another. For example Repeater, Hub, Bridge, Switch, Routers, Gateway, Brouter, and NIC, etc. 1. Repeater - A repeater operates at the physical layer. Its job is to amplifies (i.e.,
6 min read
Introduction of Classful IP Addressing
An IP address is an address that has information about how to reach a specific host, especially outside the LAN. An IP address is a 32-bit unique address having an address space of 232. Classful IP addressing is a way of organizing and managing IP addresses, which are used to identify devices on a network. Think of IP addresses like street addresse
10 min read
Article Tags :