skip to main content
10.1145/3631085.3631238acmotherconferencesArticle/Chapter ViewAbstractPublication PagessbgamesConference Proceedingsconference-collections
research-article

An Open-Source Framework Using WebRTC for Online Multiplayer Gaming

Published:19 January 2024Publication History

ABSTRACT

Currently, most network topologies used in online games to connect players are client-server, even for browser-based games. This work evaluates an alternative approach, describing the implementation of a hybrid peer-to-peer (P2P) architecture. We have developed the open-source Proton framework for multiplayer online games, using the browser-based Web Real-Time Communication (WebRTC) technology and running on the Unity game engine. As a case study, the same prototype game was built over both topologies: a client-server using the Photon Unity Networking (PUN) and the other using our proposed framework. We detail our implementation and then analyze networking metrics in two scenarios. Later, we show that the results are promising and assess that the WebRTC API is mature enough to serve as the basis for online multiplayer games.

References

  1. Yousef Amar, Gareth Tyson, Gianni Antichi, and Lucio Marcenaro. 2019. Towards Cheap Scalable Browser Multiplayer. In 2019 IEEE Conference on Games (CoG). IEEE, London, UK, 1–4. https://doi.org/10.1109/CIG.2019.8847958Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Fábio Reis Cecin, Rafael de Oliveira Jannone, Cláudio Fernando Resin Geyer, Márcio Garcia Martins, and Jorge Luis Victória Barbosa. 2004. FreeMMG: A Hybrid Peer-to-Peer and Client-Server Model for Massively Multiplayer Games. In Proceedings of 3rd ACM SIGCOMM Workshop on Network and System Support for Games (Portland, Oregon, USA) (NetGames ’04). Association for Computing Machinery, New York, NY, USA, 172. https://doi.org/10.1145/1016540.1016567Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Fábio Reis Cecin, Rodrigo Real, Rafael de Oliveira Jannone, Cláudio Fernando Resin Geyer, Márcio Garcia Martins, and Jorge Luis Victória Barbosa. 2004. FreeMMG: A Scalable and Cheat-Resistant Distribution Model for Internet Games. In Eighth IEEE International Symposium on Distributed Simulation and Real-Time Applications. IEEE Press., New York, NY, USA, 83–90. https://doi.org/10.1109/DS-RT.2004.21Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Luther Chan, James Yong, Jiaqiang Bai, Ben Leong, and Raymond Tan. 2007. Hydra: A Massively-Multiplayer Peer-to-Peer Architecture for the Game Developer. In Proceedings of the 6th ACM SIGCOMM Workshop on Network and System Support for Games (Melbourne, Australia) (NetGames ’07). Association for Computing Machinery, New York, NY, USA, 37–42. https://doi.org/10.1145/1326257.1326264Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Arthur Fages, Cédric Fleury, and Theophanis Tsandilas. 2022. Understanding Multi-View Collaboration between Augmented Reality and Remote Desktop Users. Proc. ACM Hum.-Comput. Interact. 6, CSCW2, Article 549 (nov 2022), 27 pages. https://doi.org/10.1145/3555607Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Lu Fan, Phil Trinder, and Hamish Taylor. 2010. Design issues for peer-to-peer massively multiplayer online games. International Journal of Advanced Media and Communication 4, 2 (2010), 108–125.Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Jakob Forsbacka and Gustav Sollenius. 2023. A Peer-to-Peer Networking Framework for Scalable Massively Multiplayer Online Game Development in Unity. Master of Science in Computer. Halmstad University, School of Information Technology, Halmstad.Google ScholarGoogle Scholar
  8. Google. 2011. Web Real Time Communication. Google. https://webrtc.org/Google ScholarGoogle Scholar
  9. Serhan Gül, Dimitri Podborski, Jangwoo Son, Gurdeep Singh Bhullar, Thomas Buchholz, Thomas Schierl, and Cornelius Hellge. 2020. Cloud Rendering-Based Volumetric Video Streaming System for Mixed Reality Services. In Proceedings of the 11th ACM Multimedia Systems Conference (Istanbul, Turkey) (MMSys ’20). Association for Computing Machinery, New York, NY, USA, 357–360. https://doi.org/10.1145/3339825.3393583Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Thorsten Hampel, Thomas Bopp, and Robert Hinn. 2006. A Peer-to-Peer Architecture for Massive Multiplayer Online Games. In Proceedings of 5th ACM SIGCOMM Workshop on Network and System Support for Games (Singapore) (NetGames ’06). Association for Computing Machinery, New York, NY, USA, 48–es. https://doi.org/10.1145/1230040.1230058Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Shun-Yun Hu, Jui-Fa Chen, and Tsu-Han Chen. 2006. VON: a scalable peer-to-peer network for virtual environments. IEEE Network 20, 4 (2006), 22–31. https://doi.org/10.1109/MNET.2006.1668400Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. Keith W. Ross James F. Kurose. 2021. Computer Networking - A Top-Down Approach (8th ed.). Pearson, New York.Google ScholarGoogle Scholar
  13. B. Knutsson, Honghui Lu, Wei Xu, and B. Hopkins. 2004. Peer-to-peer support for massively multiplayer games. In IEEE INFOCOM 2004, Vol. 1. IEEE, New York, 107. https://doi.org/10.1109/INFCOM.2004.1354485Google ScholarGoogle ScholarCross RefCross Ref
  14. Kit Yung Lam, Liang Yang, Ahmad Alhilal, Lik-Hang Lee, Gareth Tyson, and Pan Hui. 2022. Human-Avatar Interaction in Metaverse: Framework for Full-Body Interaction. In Proceedings of the 4th ACM International Conference on Multimedia in Asia (Tokyo, Japan) (MMAsia ’22). Association for Computing Machinery, New York, NY, USA, Article 10, 7 pages. https://doi.org/10.1145/3551626.3564936Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. Philip Mildner, Tonio Triebel, Stephan Kopf, and Wolfgang Effelsberg. 2017. Scaling Online Games with NetConnectors: A Peer-to-Peer Overlay for Fast-Paced Massively Multiplayer Online Games. Comput. Entertain. 15, 3, Article 3 (apr 2017), 21 pages. https://doi.org/10.1145/2818383Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. Mozilla Developer Network. 2022. WebRTC Statistics API. Mozilla Foundation. https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_Statistics_APIGoogle ScholarGoogle Scholar
  17. Photon Engine. 2018. Photon Unity Networking (PUN). Exit Games Inc. https://www.photonengine.com/en-US/PUNGoogle ScholarGoogle Scholar
  18. Jonathan Rosenberg, Christian Huitema, Rohan Mahy, and Joel Weinberger. 2003. STUN - Simple Traversal of User Datagram Protocol (UDP) Through Network Address Translators (NATs). RFC 3489. https://doi.org/10.17487/RFC3489Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. Gregor Schiele, Richard Suselbeck, Arno Wacker, Jorg Hahner, Christian Becker, and Torben Weis. 2007. Requirements of Peer-to-Peer-based Massively Multiplayer Online Gaming. In Seventh IEEE International Symposium on Cluster Computing and the Grid (CCGrid ’07). IEEE, Rio de Janeiro, Brazil, 773–782. https://doi.org/10.1109/CCGRID.2007.97Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. Randall R. Stewart, Michael Tüxen, and karen Nielsen. 2022. Stream Control Transmission Protocol. RFC 9260. https://doi.org/10.17487/RFC9260Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. Unity Technologies. 2005. Unity Game Engine. Unity Technologies. https://unity.com/Google ScholarGoogle Scholar

Index Terms

  1. An Open-Source Framework Using WebRTC for Online Multiplayer Gaming

        Recommendations

        Comments

        Login options

        Check if you have access through your login credentials or your institution to get full access on this article.

        Sign in
        • Published in

          cover image ACM Other conferences
          SBGames '23: Proceedings of the 22nd Brazilian Symposium on Games and Digital Entertainment
          November 2023
          176 pages

          Copyright © 2023 ACM

          Publication rights licensed to ACM. ACM acknowledges that this contribution was authored or co-authored by an employee, contractor or affiliate of a national government. As such, the Government retains a nonexclusive, royalty-free right to publish or reproduce this article, or to allow others to do so, for Government purposes only.

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          • Published: 19 January 2024

          Permissions

          Request permissions about this article.

          Request Permissions

          Check for updates

          Qualifiers

          • research-article
          • Research
          • Refereed limited
        • Article Metrics

          • Downloads (Last 12 months)15
          • Downloads (Last 6 weeks)5

          Other Metrics

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader

        HTML Format

        View this article in HTML Format .

        View HTML Format