Sooraj Profile picture
Mar 19 33 tweets 13 min read
With the release of the new node version 1.35.6.

#Cardano now supports Dynamic peer-to-peer (P2P) networking capability

This update brings a significant boost for the

Resilience & decentralization of #Cardano's networking layer

Why?

Let's dive in🧵👇
Decentralization is a core value driver for #Cardano

& there are 3 pillars to #Cardano's decentralization

• Networking

• Governance

• Block production

With this upgrade

#Cardano has now achieved complete decentralization of its networking layer

How? let's take a look👇
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
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
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.
Cardano's networking layer was undergoing a constant evolution

From its initial federated structure--> which was centralized



The hybrid model--> where nodes communicate via trusted relays or the community-managed tool "topology updater"



The current Dynamic P2P model
So let's take a look at the Dynamic P2P network

The goal of a Dynamic P2P network is to

Enhance the flow of information between nodes

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

And enable the further decentralization of the #Cardano network
Before going further subscribe to our weekly newsletter:

This Week In #Cardano

Your weekly dose of updates on the major events happening in the #Cardano and the broader #Blockchain Ecosystem 💡🤓

Subscribe here👇
thisweekincardanonewsletter.carrd.co
So let's dive into the technical details of the P2P functionality

#Cardano network uses 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 comprises two primary elements

The accept loop & also the inbound protocol governor

The accept loop allows for incoming connections
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
So let's take a look at how Dynamic P2P is different from the hybrid model

1. Dynamic P2P streamlines and refines static configurations

This enables SPOs to target dynamic but specific connection numbers (e.g., 20)

from thousands of available relays
Meaning,

It provides an automatic selection of new connections as existing ones go offline,

eliminating reliance on a static peer pool (as it is with the hybrid model)

and enhancing adaptability
2. P2P enables advanced setups for direct connections between SPOs

Suppose two SPOs want to link their relays, and both have two relays

They can create a peer group including each other's relays,

aiming for at least one active connection.
This eliminates the need for excess capacity

And still provides an automatic backup if a relay fails

In contrast,

static configurations (of the hybrid era) forced a choice between limited resilience with one listed relay

or wasted resources with both relays listed
3. P2P constantly & automatically refines peer selection to reduce overall network diffusion time

Meaning,

The system gauges how often peers first supply block headers that join the blockchain

This helps in identifying & periodically replacing nodes with higher-performing ones
Basically,

The Dynamic P2P allows for autonomous interconnection of SPO relays

by employing

self-discovery & optimization techniques

Which removes the need for

static configurations & manual SPO maintenance inherent in hybrid setups
Which in turn makes the network more performant

and resilient to node or routing failures

enhances the network's overall performance and fortifies its adaptability

in the face of alterations, such as node or routing malfunctions
After Dynamic P2P

#Cardano's networking layer will keep evolving

With eventual upgrades like Ouroborus Genesis & Peer sharing

enabling anyone to run a full node like Daedalus

To connect & contribute connect to a fully decentralized & self-organized network

like #Bitcoin
Here's a thread that will give you a peek into "Ouroborus Genesis"

an upcoming #Cardano upgrade

That will enable Dynamic participation for validator nodes in a decentralized environment

making #Cardano the first PoS #blockchain with this capability
Tl;DR

Dynamic P2P is a key evolution of #Cardano's networking layer

That

• Automates peer selection
• Removes manual SPO input
• Eliminates static configurations
• Enhances node communication

and

• Boosts Performance, Resilience & Decentralization of #Cardano
Considering a career in the #blockchain sector?

Explore the Job Board by @cardano_jobs

Discover:

▪️engaging roles within the #CardanoCommunity

▪️unique job openings from leading Cardano ecosystem projects
👇
jobs.cardanojobs.io
Btw

@RareEvo is happening Aug 24th-26th in Denver, Colorado

Its the largest #Cardano event, where you can learn & network

So, grab your tickets starting February 12th

You can use the code "Sooraj" to get a 10% discount

But on top of that you will also receive a book for free
The first 50 to use code "Sooraj" will also receive a free copy of

"A 3-Step Metrics-Based Assessment Framework for Layer1 Blockchains"

It's packed with easy-2-understand assessment frameworks & examples

So you can discover the actual value of an L1

amazon.de/3-Step-Metric-…

• • •

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 @SoorajKSaju

Mar 17
The US #Fed is on an ambitious mission to reduce its balance sheet & hike interest rates

As a result, the financial & tech sectors are experiencing significant disruptions & setbacks

BUT

This creates ONCE IN A GENERATION opportunity for #blockchains like #Cardano

Why?🧵👇 Image
So, what is the balance sheet, and why does it exist?👇

The Federal Reserve employs various tools to regulate the financial system

including manipulating the flow & cost of capital

Typically, the preferred methods of achieving these objectives are through interest rates

BUT
In certain circumstances, the Fed turns to its BALANCE SHEET

another instrument from its monetary policy toolbox to control the money supply

So what is Fed's Balance sheet?

The Fed balance sheet represents the assets & liabilities of the United States Federal Reserve Image
Read 29 tweets
Feb 9
#Bitcoin is the only #blockchain that offers

Dynamic participation for validator nodes in a decentralized environment

None of the PoS #blockchains can offer this

But Ouroborus Genesis will make #Cardano the first PoS #blockchain with this capability

How? Here's a Thread🧵👇
Ouroboros Genesis is a highly anticipated upgrade to the consensus protocol of #Cardano in 2022

This upgrade is designed to address the issues of costless simulation and the bootstrapping problem and mitigate the threat of long-range attacks

in a decentralized, open environment
To understand how Ouroborus Genesis will give #Cardano the same security guarantees ad #Bitcoin

We need to start from the basics

To understand this topic from a first principles perspective!

For that let's start form #Bitcoin
Read 51 tweets
Feb 5
Introducing Dandelion API,

a set of APIs designed to simplify the process of developing decentralized applications and smart contracts on #Cardano

A tool that helps developers to access and work on #Cardano with ease and efficiency

Want to know more?

Here’s a thread🧵👇
The Dandelion project is a community-supported initiative

led by @gimbalabs and operated by @repsistance

That offers a wide range of APIs for developers to access different layers of the Cardano

These APIs can be used to build a wide range of

dApps, light wallets, and more
Dandelion API offers 2 different paths for developers to get started

▪️A hosted instance of every available Cardano API offered as a free community service by @gimbalabs

▪️An open-source project to deploy the community service using Kubernetes (a container orchestration tool)
Read 17 tweets
Jan 31
#Cardano saw an incredible amount of development in the 1st month of 2023

But when it comes to its influence over shaping the future of the #Cardano ecosystem

One development stood above all others

It's not #DJED or the launch of another dApp

Curious? Here's a thread 🧵👇
#Cardano is not designed to be a single "God protocol"

That embraces one set of trade-offs and denies flexibility

But #Cardano is designed to be a financial operating system

That is flexible enough to accommodate the arbitrary complexity of a broad range of usecases
This is why the design of #Cardano is based on the concept of "Separation of concerns"

A concept that #Cardano borrowed from the design of TCP/IP

The Internet's core communication system that enables every Internet-connected device to communicate with each other
Read 32 tweets
Dec 2, 2022
#Ethereum Community often calls themselves #Decentralization maxis

But if we look at the real metrics

#Cardano is far ahead than #Ethereum on #Decentralization

Here are the reasons why #Cardano is the most decentralized PoS-based blockchain out there🧵👇
#Decentralisation is the core ethos that gives meaning to the public #Blockchain space

Because it eliminates the need for trusted parties

#Bitcoin initiated this movement in the backdrop of the 2008 financial crisis

Resulted from the corrupt banks & lack of transparency
That's why #Decentralization is the one core principle

That no Layer 1 blockchain should compromise

Compromising on #Decentralization takes away the whole value proposition of public blockchains

Now let's move to the facts and metrics comparing #Ethereum and #Cardano
Read 30 tweets
Nov 30, 2022
Not a lot of people know this

But Babel Fee is an innovation that will make #Cardano future proof

And Babel fee is already live on #Ergo Image
Babel fees coupled with a communication protocol similar to IBC of #Cosmos

That will be a game-changer for #Cardano

Hint: App chains/sidechains
If you want to know more

Here's a fantastic educational content by @InputOutputHK that explains the tech behind babel fees.👇
Read 4 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!

:(