Sooraj 🚢 Profile picture
Aug 27 36 tweets 15 min read
#Decentralization of the networking layer of #Cardano is the most anticipated upgrade after the #Vasil HFC event

P2P is one such upgrade that will make #Cardano a far more decentralized & resilient network than what's it now

So here's a thread on peer-to-peer (P2P) networking
Decentralization is a core value and driver for #Cardano

And there are three pillars to Cardano's decentralization

• Networking

• Governance

• Block production
These three pillars are intrinsically linked to one another.

And all of them work synergistically to achieve the complete #decentralization of #Cardano.

As of now, #Cardano has achieved complete decentralization of the "block production."
The next step in the decentralization process is the complete decentralization of the #Cardano network.

Before we go into the details of the upcoming upgrade,

let's take a look at the evolution of the network connectivity model of #Cardano.
So what is a networking layer?

Cardano’s networking layer is a physical infrastructure,

that combines nodes and their interaction into a unified system

The network distributes information about transactions and block creation among all active nodes.
There are two types of nodes

• Core nodes

• & Relay nodes

Core nodes: responsible for producing blocks

Relay nodes: responsible for communicating with other relays in the network & broadcasting blocks

One or more relay nodes must accompany each core node
In this way,

the system validates and adds blocks to the chain and verifies transactions

Thus,

a distributed network of nodes must keep communication delays to a minimum,

and be resilient enough to cope with failures, capacity constraints, or hackers.
When Cardano was launched,

the Byron network connectivity model operated in a federated state.

Meaning,

All the core and relay nodes that connected to about 200 other relays

were maintained by IOG

Simply said, this was a centralized networking layer.
Under this old federated system,

nodes were connected by a static configuration defined in a topology file

Here's an illustration of the networking layer during the Byron era👇
After the Shelley Hard fork

Cardano started functioning in a hybrid mode.

Meaning,

the nodes are connected to federated relays and other SPO relays

This connectivity is not fully automatic, where the nodes self discover other nodes

But it is partially manually constructed.
So let's take a look at how the current system functions.

#Cardano networking is based on the TCP/IP stack,

which ensures guaranteed delivery of data between the nodes

Currently, Cardano uses only unidirectional connections.
Meaning,

For proper functioning of a #Cardano node (relay or core node)

It needs both incoming (server) and outgoing (client) connections.

Currently,

the initiation of these incoming and outgoing connections is not automatic but manual
This manual configuration of #Cardano network is based on a centralized tool called "topology updater."

A Network Topology is the arrangement with which network devices are connected

Currently,

As a block producer, you need incoming connections, or your blocks won’t propagate.
So the nodes need to know the list of active relays they can connect to and also list their relays

The topology updater helps stake pool operators to connect their nodes to other nodes in the network

which renders new topology.json files every 24 hours

bit.ly/3Rb9dDG
A set of mini protocols enable communication between different nodes

A mini protocol is a defined modular building block of the network protocol

This modular structuring of the network

allows managing the overall complexity of the network design while ensuring flexibility
Each mini protocol implements a basic information exchange requirement, such as

Sharing blocks as needed

Informing peers of the latest block

A multiplexing layer acts as a central crossing between mini-protocols & the network channel
The topology updater was developed by a #CardanoCommunity member

that was supposed to be a temporary solution till #Cardano transforms into a P2P network

A failure in this centralized topology updater service would lead to the failure of all topology updaters on the relay nodes
A distributed network of nodes must keep communication delays to a minimum

and should be resilient enough to cope with failures or capacity constraints

The #Cardano network may not achieve the above-mentioned qualities

till it transforms into a fully decentralized P2P network
So let's take a look at the upcoming P2P network

The goal of a P2P network is to

Enhance the flow of information between nodes

Remove the network’s reliance on centralized services like topology updater

And enable complete decentralization of the #Cardano network
Let's dive into the technical details of the upcoming P2P functionality

#Cardano network will use the following components to enable a P2P networking

• Server

• P2P governor

• Connection manager

• Inbound protocol governor
Let's take a closer look at these components

1. P2P governor

Based on the relative activity and established connections

the peer nodes of #Cardano network could be classified as

• Hot peers

• Cold peers

• Warm peers
• Cold peers

These are the existing nodes without an established network connection

• Warm peers

These are the nodes with an established connection

Which is only used for network measurements without implementing any of the node-to-node mini-protocols
• Hot peers

These are the nodes that have a connection,

which is being used by all three node-to-node mini-protocols

The P2P connection should be managed based on the activity and established network connection

To ensure the best system performance of the #Cardano network
The P2P governor is responsible for peer connection management

Meaning,

The P2P governor defines

which peers are beneficial for connection purposes,

and which should be promoted or demoted between cold, warm, or hot sets
Let's take a look at the activities of the P2P governor

Discovering cold peers using random gossip

Promotion of cold peers to warm peers

Demotion of warm peers to cold peers

Promotion of warm peers to hot peers

Demotion of hot peers to warm peers
Basically,

The P2P governor maintains the target number of cold, warm, and hot peers

This helps in building and maintaining a connectivity map of the entire network

This simplifies the process of connection between the peer nodes by handling them automatically
Now the second component!

2. Connection manager

The integration of the connection manager with the P2P governor enables bidirectional communication between peers

and also allows for enhanced node-to-node communication without affecting performance
3. Server

The server accepts connections

and performs dynamic rate limiting to control the rate of requests sent or recieved by the peers
4. Inbound protocol governor

The inbound protocol governor is responsible for running and tracking the state of the inbound connection side.

This includes tracking the state of each remote peer (cold, warm, or hot)

and the state of each inbound mini-protocol
The P2P network of #Cardano will also have a "Gossip" component of the network

Which helps in discovering nodes on the network beyond the nodes that are registered on the chain

Meaning,

You don't have to be an SPO to run a stake pool to contribute to the #Cardano network
You can contribute to the #Cardano network by running a full node like Daedalus

Currently, Daedalus connects to IOG relay nodes to download a copy of the blockchain

Gossip enables Daedalus to be a full block propagating node

which could connect to relays from SPOs & vice-versa
This is revolutionary for the #Cardano network

Because this will enable ordinary people to participate and contribute to the network

This could make #Cardano,

the most resilient & decentralized public #blockchain out there
According to the latest information available from @InputOutputHK

P2P development is feature complete & all the essential testing has been done

It is undergoing a review of design & implementation

The rollout of P2P nodes will occur in a gradual manner

TL;DR-

• P2P is a much-anticipated upgrade of #Cardano

• That will enable complete decentralization of its networking layer

• Allowing even the full nodes like Daedalus to propagate blocks

• Making it orders of magnitude more decentralized & resilient than what it is now
That's a wrap!

If you enjoyed this thread:

1. Follow me @Soorajksaju2 for more of these

2. RT the tweet below to share this thread with your audience

If you like Threads like this, you might enjoy our weekly newsletter: Just The Metrics.

A 5-minutes, easy-to-understand newsletter about crypto fundamentals to stay up to date & be better crypto investors 📈

Subscribe here👇
…st-the-metrics-newsletter.beehiiv.com

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Sooraj 🚢

Sooraj 🚢 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @Soorajksaju2

Aug 7
Data availability has been an exciting and new topic for discussion among the #CardanoCommunity recently

But it's also an abstract and complex topic

So here's a thread that simplifies "Data availability"(DA)

And how a DA-Layer would function on #Ethereum 2.0
Data availability is the guarantee that the block proposer published all transaction data for a block

And that the transaction data is available to other network participants

Why is it important?

For this, one must understand how trustlessness work in public blockchains
• Block:

Each block has two major parts:

• The block header:

This contains general information (metadata) about the block

Such as the timestamp, block hash, block number, etc.

• The block body:

This contains the actual transactions processed as part of the block
Read 38 tweets
Aug 3
How to assess an L1 PoS smart-contract enabled #Blockchain?

It's one of the most challenging tasks a normal user faces

And for that, you have to know about the metrics that make an L1 valuable

So, here is a framework for you to assess an L1 PoS Blockchain 📊🧵👇
L1 utility tokens are an emerging asset class of the 21st century

And when making investment decisions in this particular asset class

It is important to not base them on hype or ever-changing narratives

And it's also important to separate a "solid" L1 from a "mediocre" L1
Especially in the light of recent events

It becomes more & more obvious

That fundamental and metrics-based decision-making is key for a profound project assessment

So don't follow the hype, follow the numbers
cnbc.com/2022/06/01/sol…
Read 22 tweets
Jul 19
Recently, #Algorand has become a hot topic among the #CardanoCommunity

The curiosity peaked, especially after @JohnAlanWoods left @InputOutputHK

To become the new CTO of @AlgoFoundation

So, here is a thread on #Algorand & its Pure Proof of Stake(PPoS) algorithm🧵👇 Image
@JohnAlanWoods @InputOutputHK @AlgoFoundation The purpose of this thread is to focus on👇

• Nodes & Network

• Accounting model

• The team behind #Algorand

• Launch & Initial token distribution

• Consensus & Pure proof of stake(PPoS) sybil protection

To provide a basic understanding of #Algorand
@JohnAlanWoods @InputOutputHK @AlgoFoundation Team👇

Algorand is a L1 Blockchain

Founded in June 2019 by computer scientist & MIT professor Silvio Micali

Who co-invented many breakthroughs at the heart of modern cryptography

such as VRFs & zero-knowledge proofs (ZKPs)

& won the 2012 Turing Award for his contributions Image
Read 26 tweets
Jul 1
Governance is a crucial component of #Decentralization

This is something that #Bitcoin & #Ethreum conveniently ignore

But, #Cardano is built based on 1st principles & governance is a key focus of development

Here is a thread on Governance, Voltair era & Project Catalyst🧵👇
Like the way, democracy unshackled regular citizens to grab power from the feudal lords

#Bitcoin was the 1st movement

Enabling regular citizens to grab power from the flawed financial institutions

To create a fair, transparent & inclusive financial system

To bank the unbanked
But #Bitcoin has a fundamental flaw, which #Ethereum inherited

"Lack of Governance"

This lack of governance resulted in major community splits

Ethereum & Ethereum Classic as a result of a hack in 2016

Bitcoin & Bitcoin Cash over the debate of the network's scalability in 2017
Read 30 tweets
Jun 1
#Ethereum's account-based model & smart contract based on Solidity is a marriage made in hell

Vasil-HFC Event is on the horizon

& its time to unleash synergies of #Cardano's EUTxO model & Plutus

Here's a thread on why EUTxO model & functional programming is what DeFi needs🧵👇
The ultimate goal of #Blockchain

Is to replace the corrupt & centralized traditional financial system

To create an inclusive global financial system to bank the unbanked

But are we going to do it with a system that is more problematic than what we have now?
#Crypto in general & DeFi has seen massive growth in the last decade

DeFi-exploits have also seen proportional or even bigger growth

This makes us realize the fundamental requirement of the system we want to be a part of

A blockchain architecture that offers safety & security
Read 31 tweets
May 16
'Parallelism' is a core feature of #Cardano's EUTxO ledger model
 
This is one of those features that enable the  creation of scalable DApp on #Cardano
 
So let's dive in and explore the concept of 'Parallelism':🧵👇
So what is ''Parallelism'' ??

In the context of computation

The term Parallelism refers to techniques to make programs faster by performing several computations at the same time
Why is parallelism important in the context of #Blockchain?

A blockchain architecture that allows transaction parallelism is a requirement to have high throughput on-chain

and it allows for the building of scalable Dapps on top of the #Blockchain
Read 16 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(