With the rise of cryptocurrencies like Bitcoin and Ethereum in the field of financial technology, public blockchain has become the core technology to support the safe processing of network-level Peer-to-Peer transactions. As we all understand, the consensus mechanism and encrypted algorithm of blockchain play critical roles in preventing ledger falsification and securing the safety of blockchain.
However, what is equally important is the design of the Peer-to-Peer network protocol, which plays a key role in not only the safety but also the efficiency of a blockchain system. Starting from real cases of attacks against the current Peer-to-Peer networks and recent researches on the improvement of network performance.
In October 30th 2018, Dr Ming Wu, Conflux CTO, gave a lecture in the Department of Computing Science, Tsinghua University, entitled “The designs of Blockchain peer-to-peer network protocols and my personal opinions”. The lectures provided in-depth discussions on how to design a safe and efficiency Peer-to-Peer network protocol.
The lecture started with a brief introduction on the basic concept of blockchain technology, which was followed by a discussion on the safety issue of blockchain peer-to-peer network and Conflux’s strategy in addressing it. Below, we summarized the key contents of Dr Wu’s lecture to share with all the friends who missed the lecture but are keen to learn about the blockchain P2P network protocols, its current design defects and how it can be improved and optimized in the future.
Dr Ming Wu introduced and analyzed the peer-to-peer network protocol of Bitcoin, one of the most popular blockchain systems, and its safety weakness: Eclipse Attack. Eclipse Attack is a typical attack method against blockchain peer-to-peer networks. It aims to control all the neighbours of certain nodes so that the attacker can control all of their incoming and outgoing data. In the design of the Bitcoin network, each node can actively establish connections with a maximum of 8 other nodes and can accept the active connection from at most 117 other nodes.
In order to screen out the appropriate nodes for connection, in Bitcoin each node maintains two tables: New Table and Tried Table; the New Table records all the node addresses shared by the neighbour nodes, whereas Tried Table records all the addresses of nodes that it used to successfully connect with. When selecting nodes to actively establish a connection, Bitcoin will randomly pick a node from the tables and attempt to connect, during which it has a preference to newer record. However, this gives the attackers an opportunity: the attacker can send falsified node addresses to the victim node to pollution it’s New Table, and also engage its Tried Table by connecting thousands of IPs to it. In the meanwhile, once the victim node reboots because of systems update etc., the attacker will immediately operate a massive amount of nodes to connect to it, in order to exhaust its quota of 117 incoming connections. In this way, the Eclipse Attack is successfully completed.
Next, Dr Wu continued to analyze the peer-to-peer network design of Ethereum and introduced its differences from Bitcoin. The peer-to-peer network design of Ethereum was inspired by Kademlia DHT. It has three defects:
The attacker can operate a massive amount of nodes to connect to the victim node, which will let its number of connections reach maximum, preventing it from connecting to more other nodes.
The attacker can use very few IP addresses to produce a large amount of DHT addresses, in order to engage the neighbour address lists of other nodes.
When an Ethereum node reboots, it should have reloaded the neighbour address list from the hard disk. However, the attacker can send data to the victim node, luring it not to reload the neighbour address list from the hard disk, but instead select the attacker as the neighbour.
For these reasons, Ethereum is also weak in defending Eclipse Attack.
At last, Dr Wu introduced the peer-to-peer network design of Conflux, which is currently undergoing development. Conflux’s consensus algorithm can support full node verification with 6000 TPS, which requires a high-efficiency, stable and reliable peer-to-peer network to realize its full potential. The current peer-to-peer networks of Bitcoin and Ethereum both have the safety issue that, the attacker can forge a large number of nodes with a relatively low cost, in order to fully engage a victim node’s neighbour address list. Based on this, Dr Wu invented several strategies to improve the network safety, for example: maintaining more extra nodes, but in the meanwhile only exchanging the block header; adjusting the number of neighbours in connection based on real-time dynamics; adding PoW mechanism to enhance the cost of an attack, etc.
After the lecture, Dr Wu hosted a Q&A section with the audiences, and answered many students’ questions regarding the designs of peer-to-peer network protocols and also the application and development of blockchain technology.
Dr Wu stated that through this lecture he hopes everyone can learn more about the designs of peer-to-peer network protocols, understand its importance to the safety and performance of blockchain, think more about how to design a safe and efficient peer-to-peer network protocol, and together follow the advancement and development of blockchain technology.
What are shitcoins? Watch this Video to learn
Appealing to Regulators, Binance launches a Tax Reporting Tool
Leaving China, Crypto Exchanges Cancels Most of their Chinese Businesses
Patricia sponsors Big Brother Naija the 2nd time after recording 13k Users in 12 Hours
Yes! Bitcoin at $38k, See Why they Say It Has A Mind of its Own
The CBDC will lower the cost of doing business – CBN
Nigeria’s CBDC to Run on Hyperlegder Fabric
NatWest Suspends Payments to Binance
Carlifornian Resident Files Lawsuit against Dfinity Over ICP Sale
Watch the Latest Edition of Inside Blockchain – 29th Nov. 2020
Crypto Roast is LIVE – 27th Nov. 2020
AMA Series with Beam CTO & Tech Lead, Alex Romanov
Keep it Locked on to Cryptotvplus
Inside Blockchain | 16.11.2020
Inside Blockchain: WHY YOU SHOULD BECOME A BLOCKCHAIN DEVELOPER
How Blockchain Technology Can Transform Governance In Africa
Hedge Trading on OKEx
Trading cryptocurrency seems cumbersome to new traders, especially those new to the crypto space. There have been a lot of...
The Chances of BTC Dropping to 40k Is Slim – Prateek Suri
The founder and Chief Executive Officer of the Maser group, Prateek Suri joined Tony Obiajuru this morning, 15th March, 2021...
Binance Smart Chain; CeFi or DeFi?
The controversy around whether or not the Binance Smart Chain is centralized or decentralized was cleared on the Inside Blockchain...
How Earnathon is Making Crypto Adoption Easier
Earnathon is making cryptocurrency education and adoption easier with its unique learn and earn platform. It’s no news that the...
NaijaCrypto CEO Says CBN Cannot Ban Cryptocurrency Trading
The Chief Executive Officer of NaijaCrypto, Chiagozie Iwu has said on the Inside Blockchain Show powered by CryptoTVPlus that the...