Research and Design of EPOLL-based the Network Game Server Communication Structure

Author
WangChengHao
Advisor
LiuGongWang
School
Dalian Maritime University
Major
Electronics and Communication Engineering
Classification
TP393.05 Network equipment
Degree
Master's thesis
Year
2012
Downloads
160
Citations
3

Request the full text

Abstract

With the rapid development of Internet technology and continuously improve of network hardware performance, the network game has become electronic game industry growing fastest in the type of game, and also become the IT industry one of the important profit growth point, its huge market demand attracts more and more professional game developers to join. The network game servers need for a large number of customer service at the same time, so it needs to have good stability, also needs to respond to the request of customer, so the requirement of real-time is also very high. And communication is the pillar of the network server part, so communication in the system framework directly determines the efficiency server performance. System in the allocation of resources, Socket management, the way I/O model selection and game agreement directly affect the efficiency of the communication.This paper chooses Linux platform of Epoll mechanism as basic structure of network communication model, and Epoll mechanism is used to the communication layer of the network game, It is a complicated game server in user request on the problems of provides a good solution, and combining with the network game agreement layer and the thread pool technology can construct a effective network game servers.This paper firstly analyses the network game’s research history and its development trend, and then describes the network structure and characteristics of the game servers, and based on this, focus on the server communication structure of the functional requirements of the system structure and design. In order to improve the system architecture expansibility and maintainability, it uses the object-oriented method to reduce the coupling between modules, enhance the system of general. Secondly it detailed analyses the network game server communication system in the level of structure and other communications aspects of the related technologies, introduces the socket descriptor. To many kinds of network I/O the advantages and disadvantages of each model are compared, and this paper analyses the Epoll model. Because the whole network communication process all is the event driven I/O way, and how to deal with a large Numbers of users and request has been network game server of a bottleneck. This paper studies through the Epoll management socket descriptors to handle the massive customers connection, data transmission, and finally, and each each of module in the system design and implementation, including the network I/O management, socket surveillance, game agreement and memory pool design, etc, to solve the problems encountered in the design of the server has a good project reference value.

Table of contents

Summary 5-6 ABSTRACT 6-11 Chapter 1 Introduction 11-19 1.1 Overview of the online game 11-14 1.1.1 network game development history Situation and Prospects 11-13 1.1.2 network game analysis 13-14 1.2 Overview nbsp network game server ; 14-17 1.2.1 development Status online game server basic functional requirements 14-15 1.2.2 network game server 15-16 <br / > Design 1.2.3 network game server requirements hierarchical framework 16 1.2.4 network game server meaning 16-17 1.3 research topic 17 the main research content of 1.4 17-18 1.5 This article organizational structure 18-19 related technologies are introduced and analyzed in Chapter 2 online game server 19-34 2.1 server classification and explain 19-22 2.1.1 server Introduction 19 2.1.2 server classification 19 2.1.3 server trends 19-20 2.1.4 server hardware configuration and explain 20-22 introduction 2.2 server operating system and select 22-24 2.2.1 server operating system introduces major 22-23 2.2.2 Linux features and benefits 23-24 2.2.3 server the operating system of choice 24 2.3 server architecture used 24-25 2.4 network protocol selection 25-26 2.5 Socket communication flow 26-28 2.5.1 socket (Socket) 26-27 2.5.2 Socket communication flow 27-28 2.6 network communication I / O model 28 2.7 Epoll comparison with the IOCP model and Epoll Detailed 28-30 2.7.1 IOCP model 28-29 2.7.2 Epoll mechanism 29 2.7.3 Epoll and IOCP similarities and differences between 29-30 2.8 EPOLL model Detailed 30-33 2.8.1 do not select the Select reason advantage 30 2.8.2 Epoll of 30 2.8.3 Epoll work 30-31 2.8.4 Epoll Detailed use 31-33 2.9 Summary 33-34 Chapter 3 server model selection 34-46 3.1 circulation server 34-36 3.1.1 UDP cycle server 34-35 3.1.2 TCP cycle server 35-36 3.2 simple concurrent server 36-39 3.2.1 concurrent server model 36-37 3.2.2 UDP concurrent server 37-38 3.2.3 TCP concurrent server senior concurrent server model 38-39 3.3 TCP 's 39-43 3.3.1 single Client single process , unified accept () 39-41 <br / > 3.3.2 single- threaded client , unified accept () 41-42 3.3.3 single- threaded client , each thread alone accept (), using a mutex 42 -43 3.4 I / O multiplexing cycle server model 43-45 3.5 Summary communication architecture 45-46 Chapter 4 online game server the detailed design and implementation overall structural design nbsp 46-64 4.1 game server ; 46-49 4.1.1 EPOLL mechanism in the application server communication layer 47 -48 4.1.2 game server protocol layer , logic layer , data layer 48-49 4.2 network I / O management 49-51 4.3 Socket port monitor 51-52 4.4 session management to achieve 52-54 4.4.1 session state management 52-53 4.4.2 session information statistics and assessment 53-54 4.5 game communication protocol design and implementation definition format 54-56 4.5.1 game protocol 55 <br / > 4.5.2 games to achieve agreement achieve 55-56 4.6 memory pool conceptual 56-61 4.6.1 memory pool 56 <br / > 4.6.2 memory pool to achieve Detailed 56-61 4.7 thread pool design 61-63 4.7.1 thread pool Fundamentals 61 achieve 4.7.2 thread pool 61-63 4.8 Summary 63-64 conclusion 64-65 References 65-68 Thanks graduate curriculum vitae 68-69 69-70

Related dissertations

  1. Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
    PanZuoZuo ·Dalian Polytechnic University ·2010 ·Master's thesis
  2. Research and Design of Embedded Building Security System
    YangChen ·Liaoning Normal University ·2012 ·Master's thesis
  3. The Softeware Design and Implement on Integrated Intelligent Camera Platform Based on Davinci DM6446
  4. The Research of Household Remote Monitoring Based on Embedded Web Server
  5. Research and Design of Intelligent Video Surveillance System Based on ARM
  6. Design of Video Monitoring System Based on the Embedded
  7. The Design of Embedded Network Video Surveillance System Based on ARM9
  8. Design and Application of the Distributed Monitoring System Based on Embedded Web
  9. Study on Embedded Data Acquisition System Application
    ZhangDong ·Dalian Polytechnic University ·2009 ·Master's thesis
  10. Embedded Software Design of AC Field Detection Instrument Based on ARM
  11. Research and Realization on the Key Technology of Monitoring System about Granary Environment Based on ARM9
    SunZuoLi ·Hunan University ·2013 ·Master's thesis
  12. Based on the Samsung2440Embedded Home Furnishing Design and Implementation of Intelligent Control System
  13. Design of Industrial Ethernet Motion Controller Based on ARM
  14. Research on Pulsating Vacuum Pressure Steam Sterilization Control System Based on ARM
    FuAiJun ·Nanchang University of Aeronautics and ·2013 ·Master's thesis
  15. The software design of intelligent control Home Furnishing gateway based on ARM11
    ZuoPengZuo ·Northwestern University ·2013 ·Master's thesis
  16. The System Design and Implementation of Smart Home Control Terminal Based on Linux
  17. Movement Gait Control Research of Six Feet Bionic Robot
    XuShuai ·Ningxia University ·2013 ·Master's thesis
  18. Research on Embedded Control System for Palletizing Robot
    YangYang ·Nanjing Forestry University ·2013 ·Master's thesis
  19. Control system design of robot based on ARM
    OuYangJianFei ·Jiangxi University of Technology ·2013 ·Master's thesis
  20. AGV car design and development of image recognition and motion control technology based on