Skip to main content
Log in

Predicting the behavior of large scale P2P systems by parallel discrete event simulation

  • Research Papers
  • Published:
Science China Information Sciences Aims and scope Submit manuscript

Abstract

P2P systems are becoming the dominator of Internet. Such systems are typically composed of thousands to millions of physical computers, which make it difficult to predict their behaviors without a large scale distributed system simulator. This paper is an attempt to predict the behavior of large scale P2P systems by building a novel parallel simulator: AegeanSim, which provides parallel discrete event simulation of such systems on high performance server clusters. We abstract the execution of P2P applications with a specific event model, and parallel the simulation of events in a cluster, thus expanding the simulation scale and boosting the simulation process dramatically. A 1-stage synchronization method is proposed to improve the performance. An event callback interface is designed to implement their application logic easily while keeping the simulator application-independent. We use AegeanSim to predict the behavior of a typical P2P system: BitTorrent. By comparing the simulation behavior of BT with that of related BT studies and verifying its efficiency, scalability and accuracy, we make predictions about the behavior of BT system assuming they are assaulted by different man-made system attacks. Some reasonable results are found: (1) Tracker isolation can hardly work because of its short attacking time window. (2) Limiting the bandwidth of BT may be an efficient way to control it.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Institutional subscriptions

Similar content being viewed by others

References

  1. ipoque, http://www.ipoque.com/

  2. Gil T, Kaashoek F, Li J, et al. p2psim: A simulator for peer-to-peer protocols, 2005, http://www.pdos.lcs.mit.edu/p2psim/

  3. Jelasity M, Montresor A, Jesi G P. Peersim Peer-to-Peer Simulator, 2004, http://peersim.sourceforge.net/

  4. Garcia P, Pairot C, Mondejar R, et al. PlanetSim: a new overlay network simulation framework In: Proceedings of SEM 2004, LNCS 3437. Berlin: Springer-Verlag, 2005

    Google Scholar 

  5. Yang W S, Abu-Ghazaleh N. GPS: a general peer-to-peer simulator and its use for modeling BitTorrent. In: Proceedings of MASCOTS 2005, Atlanta, Georgia, 2005

  6. Rodriguez A, Killian C, Bhat S, et al. MACEDON: Methodology for automatically creating, evaluating, and designing overlay networks. In: Proceedings of NSDI 2004, San Francisco, CA, 2004

  7. Lin S D, Pan A M, Guo R, et al. Simulating large scale P2P systems with the WiDS toolkit. In: Proceedings of MASCOTS 2005, Atlanta, Georgia, 2005

  8. Tuan T, Dinh A, Lees M, et al. Large scale distributed simulation of P2P networks. In: Proceedings of PDP 2008, Toulouse, France, 2008

  9. Lamport L. Time, clocks, and the ordering of events in a distributed system. Commun ACM, 1978, 21: 558–565

    Article  MATH  Google Scholar 

  10. Fujimoto R M. Distributed simulation systems. In: Proceedings of the 2003 Winter Simulation Conference, New Orleans, LA, USA, 2003

  11. Qiu D, Srikant R. Modeling and performance analysis of BitTorrent-like peer-to-peer networks. In: Proceedings of SIGCOMM 2004, Portland, Oregon, USA, 2004

  12. Bharambe A, Herley C, Padmanabhan V. Analyzing and improving a BitTorrent networks performance mechanisms. In: Proceedings of INFOCOM 2006, Barcelona, Spain, 2006

  13. Nicoll J, Bateman M, Ruddle A, et al. Challenges in measurement and analysis of the BitTorrent content distribution model. In: Proceedings of PGNet 2004, Liverpool, UK, 2004

  14. Piatek M, Isdal T, Anderson T, et al. Do incentives build robustness in BitTorrent? In: Proceedings of NSDI 2007 Cambridge, MA, USA, 2007

  15. Cohen B. Incentives build robustness in BitTorrent. In: Proceedings of IPTPS 2003, Berkeley, CA, USA, 2003

  16. Hales D, Patarin S. How to cheat BitTorrent and why nobody does. Technical Report UBLCS 2005-12, Computer Science, University of Bologna, 2005

  17. Thommes R, Coates M. BitTorrent fairness: analysis and improvements. In: Proceedings of WITZSP 2005, Noosa Heads, Australia, 2005

  18. Sen S, Wang J. Analyzing peer-to-peer traffic across large networks. ACM/IEEE Trans Netw, 2004, 12: 219–232

    Article  Google Scholar 

  19. Zegura E, Calvert K, Donahoo M. A quantitative comparison of graph-based models for Internet topology. IEEE/ACM Trans Netw 1997, 5: 770–783

    Article  Google Scholar 

  20. China Internet Network Information Center, http://www.cnnic.net.cn/en/index/

  21. Carothers C D, LaFortune R, Smith W D, et al. A case study in modeling large-scale peer-to-peer file-sharing networks using discrete-event simulation. In: Proceeding of the International Mediterranean Modeling Multiconference, Barcelona, Spain, 2006

  22. Bindal R, Cao P, Chan W, et al. Improving traffic locality in BitTorrent via biased neighbor selection. In: Proceedings of IEEE ICDCS 2006, Lisboa, Portugal, 2006

  23. Legout A, Urvoy-Keller G, Michiardi P. Understanding bittorrent: An experimental perspective. Technical Report, INRIA Sophia Antipolis, France, 2005

    Google Scholar 

  24. Naicken S, Livingston B, Basu A, et al. The state of peer-to-peer simulators and simulations. ACM SIGCOMM Comput Commun Rev, 2007, 37: 95–98

    Article  Google Scholar 

  25. Vahdat A, Yocum K, Walsh K, et al. Scalability and accuracy in a LargeScale Network Emulator. In: Proceedings of OSDI 2002, Boston, MA, USA, 2002

  26. Kato D, Kamiya T. Evaluating DHT implementation in complex environments by network emulator. In: Proceedings of IPTPS 2007, Bellevue, WA, USA, 2007

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to WeiMin Zheng.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Zheng, W., Yu, H., Shi, G. et al. Predicting the behavior of large scale P2P systems by parallel discrete event simulation. Sci. China Inf. Sci. 53, 1109–1121 (2010). https://doi.org/10.1007/s11432-010-3111-0

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11432-010-3111-0

Keywords

Navigation