Block Chain - Peer-to-Peer (P2P) Network
Peer-to-Peer (P2P) Network
-
Definition:
A P2P network is a system where computers (called peers or nodes) connect and share data directly with each other, without needing a central server or authority.
In blockchain, this means every node can send, receive, and verify transactions on its own, instead of relying on a bank, company, or middleman.
How It Works
-
Each node in the network has a copy of the blockchain ledger.
-
When someone makes a transaction (e.g., Alice sends 2 BTC to Bob), the transaction is broadcast to all peers.
-
Peers independently verify the transaction using blockchain rules (cryptography, consensus).
-
Once verified, the transaction is added to the blockchain and updated across all peers.
Key Features
-
No Central Authority – The network doesn’t depend on a single server.
-
Equal Power – Every peer can act as both a client (requesting data) and a server (sharing data).
-
Resilience – If one node goes offline, the network still functions.
-
Transparency & Security – Everyone sees the same data and verifies it themselves.
Examples
-
Bitcoin and Ethereum blockchains: Each wallet/node is part of the P2P system.
-
File-sharing systems like BitTorrent also use P2P to distribute files without a central host.
Advantages
-
Censorship-resistant (no one can shut down the network easily).
-
Robust and reliable since many copies of data exist.
-
Cost-effective (no need for expensive centralized infrastructure).
Disadvantages
-
Slower compared to centralized systems when the network grows large.
-
Harder to regulate since no single authority is in control.
Analogy
Think of a group chat:
-
In a centralized chat (like WhatsApp), messages go through a server.
-
In a P2P chat, everyone sends messages directly to each other, no middleman.