点对点(Peer-to-Peer)算法已成为一项热门研究。但作为验证其有效性的工具——P2P模拟器却没有受到过多的关注。现存的P2P模拟器存在很多问题,如可扩展性差、通用性差、模拟节点的数量小、忽略底层网络等。为解决这些问题,提出一种通用P2P模拟器。介绍了该模拟器的系统架构和设计实现,并通过一个实验展现其使用状况。实验证明,该模拟器是有效的,可适用于大规模P2P模拟。
Peer-to-Peer algorithm has become a popular algorithm research. But as a tool used to verify the effectiveness algorithm-P2P simulator has not got too much attention. There are many problems in the existing simulator, such as the poor scalability and generality, supporting small nodes, ignoring effect of the underlay network. In order to solve these problems,presents a general P2P simulator, and introduces its architecture, design and implementation,and will show its usage with an experiment. The experiment shows the simu- lator is effective, and can be applied to large-scale P2P.