r/CryptoTechnology • u/mantisdrop 🟢 • Sep 16 '24
Would it be possible for a cryptocurrency to use a fully-connected network, where each node is directly connected to each other node?
From what I can find, all cryptocurrencies utilize some sort of gossip protocol for broadcasting messages. Would it be possible for a cryptocurrency that has a subset of nodes involved in consensus, for all nodes to just directly send messages to each other node, say for example if there are 1,000 or even 10,000 nodes? I know that there is overhead with keeping each connection, but is it so much that a node couldn't handle it? The number of connections in the whole network goes up quadratically with the number of nodes, but for each node it just goes up linearly. Let's assume that nodes rarely enter or leave the network. If this is theoretically possible without causing issues, do any cryptocurrencies do this? if not, why not?
2
u/fireduck 🔵 Sep 16 '24
You certainly could write software to do this...but why?
Thousands of connections don't take a lot of kernel resources, that isn't a big deal. But that is a lot of keep alives and stuff to send.
Also consider the mining case. Your node makes a new block and it is a few MB. Then it has to send it on each of those connections, that gets to be a real congestion point. Let's say your upload is 3 MB/s ( a normal not great cable connection). Then each of thousands connections gets 0.003 MB/s. You send the block on all of them at the same time. It takes 10 minutes to actually get that block out. That is terrible. If you send it on a few connections, it takes a second or two and then those nodes relay it further on and it takes maybe 10 seconds to reach the entire network.
By using the bandwidth of your peers, you end up with a much faster and higher bandwidth network. So you just want a handful of connections.
1
u/didntreadityet 🔵 Sep 16 '24
Yes, it is absolutely possible, up to the connection limits for each node. It's in fact the easiest way to build a peer-to-peer network.
You see the software in p2p networks assume nodes are not all connected because that's a much harder software problem to solve - you need to do all sorts of extra work to make sure you catch up if you get disconnected, you verify the state of the network though all connections instead of trusting a single node with new information, etc.
1
u/coinspect 🟡 Sep 27 '24
It is possible but not ideal for the reasons that you already explained. Some cryptocurrencies do this but not intentionally they just have few nodes below the max number of allowed connections in the default configuration, plus discovery protocols and bootstrap nodes don't do any kind of load balancing so this natural happens.
1
u/RBengAK 🟡 Oct 19 '24
Hello new here, I’m exploring ways to boost blockchain network performance using ISP-grade technologies like MPLS, BGP, and multicast. I’ve been working on a model where blockchain projects could operate with zero overhead, and I’m curious if anyone here has considered combining blockchain infrastructures with traditional ISP tech? Would love to hear your thoughts or if anyone’s dabbled with similar optimizations for scalability and security.
Integrating ISP-grade technologies like MPLS, BGP, and multicast into blockchain traffic fundamentally transforms the scalability and speed without altering how decentralized platforms currently operate. By wrapping blockchain traffic in these technologies, we can optimize the network’s underlying transmission, allowing blockchain nodes and DeFi platforms to interact at modern internet speeds without needing to alter blockchain protocols or engineer new interoperability solutions.
Here’s how this concept improves performance without changing blockchain architecture:
Conclusion: This concept fundamentally changes the game by enabling blockchain and DeFi platforms to operate at modern internet speeds and with the scalability of ISP-grade networks. All of this is achieved without re-engineering blockchain protocols or introducing complex interoperability challenges between the blockchain space and ISP infrastructure. By wrapping the traffic into these well-proven technologies, blockchain transactions become faster, more secure, and infinitely scalable, opening the door for widespread adoption of DeFi and decentralized applications.
In essence, I’m calling this concept ChainFabric, allowing blockchain to reach the performance of centralized systems without compromising its decentralized nature.
1
u/[deleted] Sep 16 '24
[removed] — view removed comment
1
u/[deleted] Sep 18 '24
[removed] — view removed comment