Research and Realization of Net Engine of Online Game Server
- Author
- WangRuiBiao
- Advisor
- ZhangXianChao , ShiYuXun
- School
- Dalian University of Technology
- Major
- Software Engineering
- Classification
- TP393.05 Network equipment
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 418
- Citations
- 7
Abstract
The paper at the background of online game server’s development, provides a practical method in design and development of online game server, in which the IOCP mechanism provided by the windows operating system has been used.Firstly, it introduced the history of the online game development, the online game classification, and the critical technique for developing network engine of online game server, such as the IOCP mechanism, the multi-thread technology and the transport protocols and so on. And then following section we will present overall architecture of network engine of online game server-side and its implementation. The whole network engine is divided into three layers, included the highly effective receiving and dispatching layer, the highly effective processing layer and the business logic processing layer. The highly effective receiving and dispatching layer uses the IOCP mechanism which is provided by the windows operating system to design and implement, it can process the massive user’s concurrent connection and highly effective receiving and transmitting the network data. The highly effective processing layer uses many kinds of threads to process network data effectively. There are three types of thread: the unpacking thread, which uses the cycle buffer split the physical data package into the logic data package one by one, the logical processing thread, which processes the logic data package and provide the result to the business logic processing layer, and the transmission thread, which delivers the transmitting data after encryption on the IOCP port. The business logic processing layer mainly provides the interfaces of the network engine.Finally, Paper gives the implementation of a Chinese chess game server which is based on this network engine, and tests the performance of the server. The test result shows this network engine is stable and efficient in handling with the massive users concurrent connections.
Table of contents
Abstract 4-5
Abstract 5-8
1 Introduction 8-16
1.1 Online Game Overview 8-13
1.1.1 online game development history 8-10
1.1.2 online games classification 10-13
1.2 Background and purpose 13-14
1.3 The main contents 14-16
2 network engine development of related technology research 16-23
2.1 network communication technology research 16-19
2.1.1 Communication protocol 16-17
2.1.2 client / server programming model 17-19
2.2 IOCP mechanism and use 19-21
2.2.1 IOCP mechanism 19
2.2.2 IOCP usage 19-21
2.3 multithreading technology 21-23
2.3.1 thread concept 21
2.3.2 difference between threads and processes 21
2.3.3 The use of threads 21-23
3 engine server network architecture design 23-27
4 network data transceiver layer efficient design and implementation 27-41
4.1 Efficient network data transceiver layer design 27-30
4.1.1 handles only data structure ( customer context socket ) 28-29
4.1.2 I / O only data structure ( buffer ) 29-30
4.1.3 CNetServer class 30
4.2 Efficient network data transceiver layer implementation 30-41
4.2.1 memory pool to achieve 32-34
4.2.2 malicious client connection 34-35
4.2.3 Packet disorder 35-36
4.2.4 listener thread implementation 36-38
4.2.5 Service -threaded implementation 38-39
4.2.6 virtual function interface 39-41
5 network data processing layer efficient design and implementation 41-55
5.1 Efficient network data processing layer design 41-42
5.2 network data processing layer efficient implementation 42-47
5.2.1 unpack threaded implementation 44-45
5.2.2 Logical Data processing threads to achieve 45-46
5.2.3 data transmission threaded implementation 46-47
5.3 ring buffer 47-55
5.3.1 ring buffer design 47-51
5.3.2 ring buffer implementation 51-55
6 logical business process layer 55-60
6.1 logical business process layer Implementation Notes 55-57
6.2 chess game server implementation 57-60
7 to achieve results and performance testing 60-64
7.1 implementation results 60-62
7.2 performance test 62-64
Conclusion 64-66
References 66-68
papers published during the master's degree case 68-69
Thanks 69-70
Related dissertations
- Research on Key Technologies of Network Game Server
- Design and implementation of network engine in network game
- Improvement and Implementation of InstLink Server System
- Design and Implementation of a Server Side in Platform for Chess/Card Online Games
- Research on Network Engine Which Deals with High Concurrent Service Request
- Design and Implementation of a Batter Testing System Server
- Research on Competitive Strategy of Chinese Small and Medium-sized Online Games Company
- The Design and Development of Unattended Remote Measurement and Monitoring System in Steel Business
- Application on Virtualized High Availability System Design on Campus Network
- Design and Implementation of the ICS Server
- Design and Implementation of Remote Video Monitor System Based on Embedded Technology
- The Research and Implementation of Payment Terminals Based on Fingerprint Identification Technology
- The Design and Implementation of a Network Communication Game on Linux
- Design and Implementation of Handheld Campus System Based on Theandroid Platform
- Design and Implemention of Android-based Taxi Reservations System
- Design and Implementation of SRCB Data Exchange Platform
- Design and Implementation of College Property Management System Based on B/S Mode
- Manufacturing Enterprise Fixed Assets Management System Design and Implementation
- Design and Implementation of Customer Management System Online Game
- Integrated Skills Graduation.NET-based Platform System Design and Research