Computers can work together.
Computers can work in teams.
Computers can work together in a special way. This is called a peer-to-peer network. In this network, every computer is a peer.
There are two main ways these networks work. Some are called unstructured networks. In these, computers connect to each other in a random way. They are easy to build. They work well even if many computers join or leave at once. However, finding a rare file can be hard. You have to ask many peers to find it.
Other networks are called structured networks. These use a tool called a distributed hash table. This is a special way to organize data. It helps computers find even very rare files quickly. 
Computers can work together in many different ways. One way is called a peer-to-peer network, or P2P.
There are two main ways these networks organize themselves. The first way is called an unstructured network. In these networks, peers connect to each other in a random way. They are easy to build and very strong. They work well even when many people join or leave. 

The idea of computers sharing has been around for a long time. The early Internet used a system called ARPANET. In ARPANET, every node could request and serve content. Later, a system called Usenet was made in 1979. It was a messaging system that used a decentralized model. In May 1999, Shawn Fanning introduced Napster. Napster was a music-sharing application. It helped make P2P networks famous to many people. It allowed users to form a virtual network without any central authority.
Different networks use different rules to find data. Unstructured networks like Gnutella or Kazaa use random connections. They are great for popular files that many people have. Structured networks like the Kad network use the DHT to assign files to specific peers. This is more efficient for searching. Some systems are hybrids. A hybrid model combines both ways of working. For example, Spotify used a hybrid model until 2014.
Peer-to-peer technology is part of our everyday lives. You might use BitTorrent to share files over the Internet. You might even use Bluetooth or Miracast to show things on a screen. 
Peer-to-peer (P2P) computing is a distributed architecture for networking and computing.
To understand how P2P works, we must look at the overlay network. P2P networks usually implement a virtual overlay network on top of the physical network topology. 
There are two main types of P2P networks: unstructured and structured. Unstructured networks do not impose a specific design on the overlay network. Instead, nodes form connections to each other randomly. 
Structured networks solve the search problem by using a specific topology. These networks often implement a distributed hash table (DHT). 
Some systems use a hybrid model to get the best of both worlds. A hybrid model combines P2P and client-server elements. For example, a central server might help peers find each other. This provides the centralized functionality needed for efficient searching. At the same time, it benefits from the decentralized power of many nodes. Spotify was an example of a hybrid model until 2014. These models often offer better performance than pure unstructured or structured networks.
The history of P2P goes back to the earliest days of networking. The first Request for Comments, RFC 1, mentioned principles that align with these ideas. The ARPANET was a successful precursor where every node could request and serve content. In 1979, Usenet was established as a decentralized messaging system. However, the concept became famous in May 1999 with Shawn Fanning's Napster. 
P2P technology is used in many modern protocols and devices. BitTorrent is a well-known protocol used for file sharing over the Internet. 
🖼️ Images & Media (9)
More to explore
✨ What else?
Related topics you might enjoy
🔬 Go deeper
More advanced topics to explore
🪜 Step back
Simpler topics to build understanding
What is Nepedia?
A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.