DEV Community

Cover image for Blockchain - a distributed P2P network
Margarita Vlachou
Margarita Vlachou

Posted on

Blockchain - a distributed P2P network

Network Types

Centralized network

  • Built around a single server and use client-server architecture.
  • Advantages: Efficiency, consistency and affordability.
  • Disadvantages: single point of failure can be risk for organizations, limited scalability, lack of bandwidth

Image description

Decentralized network

  • Distributes the workload among different machines.
  • Benefits: reliability, scalability and privacy.There is no single point of failure. Information passes through a number of different points.
  • Disadvantages: requires more machines.

Image description

Distributed Network spread over different networks. Part of distributed computing architecture.

Image description

P2P network

  • Consists of a group of devices that collectively store and share files.
  • Each participant (peer) has equal power and each node holds a copy of the file and each node can download nodes from other nodes.
  • In a P2P network there is no central governing authority.
  • All nodes are equal to each other. Anyone connected to this network can share and download any file shared by other users in the network
  • A P2P network refers to the exchange of digital assets or cryptocurrencies via a distributed network and there is no need for intermediaries. P2P networks are at the center of most cryptocurrencies and other stributed computed applications such as Netflix, Amazon, Google.

Image description

P2P networks categorized into 3 main types :

  • Unstructured, no specific organization of nodes. Participants communicate randomly with one another. They are robust and require higher memory
    Image description

  • Structured allows nodes to search for files even if the content is not available. They are more efficient but require higher maintenance and setup costs but also they are less robust.

Image description

  • Hybrid Combines the conventional client server model with some facets of the peer-to-peer architecture and improve overall performance

Image description

Server based vs P2P network

Server based network

  • Network security and storage are controlled and managed by one or more servers
  • More complex and costly to manage and set up compared to a P2P network
  • Are good for businesses that are having more than 10 computers

P2P network

  • Consists of devices that are collectively store and share files.
  • There is no central regulatory authority
  • Anyone can share and download any file which is shared by other peers in the network

Image description

P2P network & Blockchain

  • In 2008, Satoshi Nakamoto defined Bitcoin as a Peer-to-peer Electronic Cash System
  • P2P allows Bitcoin and other cryptocurrencies to be transferred worldwide, without the need for any central server.
  • Anyone can set up a Bitcoin node if they want to participate in the process of validating and verifying blocks
  • Blockchain acts as a digital ledger that publicly records all the activity. If any malicious activity is found the network quickly rejects it
  • Nodes provide security to the network by verifying transactions against the system’s consensus rules
  • The P2P architecture of blockchains provides benefits of greater security than traditional client-server based networks as distribution of large numbers of nodes creates an immune system to Denial-of-Service attack.
  • Changing data is almost impossible in a distributed P2P network especially when we talk about big networks such as Bitcoin
  • Unlike standard bank accounts, cryptocurrency can’t be drained or frozen by governments.

Image description

Top comments (2)

Collapse
 
ames0831 profile image
Austin

My focus is on making a contract with a senior blockchain developer to add smart contracts for my project. Additionally, in the future, I plan to launch my own token, similar to Shiba token or Mega Trump tokens. Therefore, I am particularly interested in candidates with a deep understanding and experience in blockchain development and the Web3 space.
I am building a decentralized finance dashboard now.
You can check out the reference website here.
zapper.xyz/

Please feel free to reach out me on telegram if you are interested in my project.
t.me/thunder0828

Collapse
 
ahmedgmurtaza profile image
Ahmed Murtaza

Well explained. Thanks