In this paper we describe LUNES-Blockchain, an agent-based simulator of blockchains that relies on Parallel and Distributed Simulation (PADS) techniques to obtain high scalability. The software is organized as a multi-level simulator that permits to simulate a virtual environment, made of many nodes running the protocol of a specific Distributed Ledger Technology (DLT), such as the Bitcoin or the Ethereum blockchains. This virtual environment is executed on top of a lower-level Peer-to-Peer (P2P) network overlay, which can be structured based on different topologies and with a given number of nodes and edges. Functionalities at different levels of abstraction are managed separately, by different software modules and with different time granularity. This allows for accurate simulations, where (and when) it is needed, and enhances the simulation performance. Using LUNES-Blockchain, it is possible to simulate different types of attacks on the DLT. In this paper, we specifically focus on the P2P layer, considering the selfish mining, the 51% attack and the Sybil attack. For which concerns selfish mining and the 51% attack, our aim is to understand how much the hash-rate (i.e. a general measure of the processing power in the blockchain network) of the attacker can influence the outcome of the misbehaviour. On the other hand, in the filtering denial of service (i.e. Sybil Attack), we investigate which dissemination protocol in the underlying P2P network makes the system more resilient to a varying number of nodes that drop the messages. The results confirm the viability of the simulation-based techniques for the investigation of security aspects of DLTs.
翻译:在本文中, 我们描述 LUNES- Block 链。 这个虚拟环境是在一个基于平行和分布模拟( PDS) 技术, 以平行和分布模拟( PDS) 技术为基础, 以获得高可缩缩缩的块链的代理模拟器。 该软件是一个多层次模拟器, 允许模拟虚拟环境, 由多个节点组成, 运行的是特定分布式Ledger技术( DLT) 的规程, 如 Bitcoin 或 Etheeurum 块链。 这个虚拟环境是在一个低层次的平级同级( P2P) 网络重叠( P2P) 网络重叠, 结构可以基于不同的表层, 结构可以基于不同的表层, 结构结构, 并有一定数量的节点和边缘。 不同层次的抽象的功能被分别管理, 由不同的软件模块模块模块模块, 由不同的模块模块模块模块, 由不同的模块模块模块管理, 并且由不同时间颗粒。 这可以进行精确的模拟, 使用 LES- block 系统 模拟, 模拟 DLT 的电路链, 可以模拟到 DLT 。 我们的电路的电路的电路的电路的电路的电路的电路的电路的电路的操作, 和Sl 。 我们的测算的操作的结果 。