Research on Game Server Architecture Based on Kademlia
- Author
- ZhongZuoLong
- Advisor
- YaoZuo
- School
- Donghua University
- Major
- Computer Applications
- Classification
- TP393.02 Computer network architecture and design
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 11
- Citations
- 0
Abstract
In recent years, with the rapid development of broadband Internet, a variety of Internet services has brought great convenience to people’s lives, but traditional network services mainly use C/S (Client/Server) mode, i.e. the server establish connection to each client by unicasting. With the rapid increasing of the number of customers, the server’s bandwidth and other resources will soon be exhausted, becomes the system’s bottleneck, P2P technology solves many technical drawbacks of centralized services, as a solution that make the full use of network resources, its application become wider and wider.In this paper, I studied the key technology in the P2P network topology and resource search algorithm. I analyzed the four P2P network topology (centralized topology, fully distributed and structured topology, fully distributed and unstructured topology and semi-distributed topology) models and their respective advantages and disadvantages, and proposed a double heterogeneous network model based on Kademlia’s concept, and also proposed implementation.The main research work of this paper is as follows:As in the traditional C/S game server architecture, the server’s resource consumption is too large, security is low, bandwidth is limited and etc, a thought based on double heterogeneous server architecture is proposed, and I also designed a game network system based on Java Plan-X, verified the correctness and feasibility of the idea.Traditional Kademlia network’s k barrels is using deque which leads low lookup efficiency, this paper use HashMap instead, and thus greatly improved the efficiency of the lookup.As the server information is highly time-sensitive, this paper also extends the Kademlia RPC directive mechanism, so that it can more timely update server information to the decentralized network.In order to ensure that the data load is balanced, the paper used the SHA1algorithm for hashing data.In addition, in order to improve the stability of the server, this paper also designed a set of serialization mechanism to ensure data integrity.This paper is divided into five chapters; each chapter is introduced as follows: Chapter1is the exordium; it gives the overview of the definition, classification and application areas of P2P technologyChapter2introduces the background of P2P and the core concept of Kademlia (the third generation of P2P technology)Chapter3describes the design ideas of this paper, including the double heterogeneous network, the components of the communication process, the server information retrieval mechanism and the node communication.Chapter4is the concrete implementation details, including the components of the network architecture, the packet format description of node communication and the routing table update algorithm.The last chapter summarizes the work of this paper and the outlook for future work.
Table of contents
Abstract 5-7
ABSTRACT 7-13
1 Introduction background and significance of the study 13-16
1.1 13-14
1.2 current research 14-15
1.3 contents of this paper 15
1.4 This article structure 15-16
2 P2P technology introduction 16-30
2.1 introduction 16
2.2 P2P topology 16-18
2.2.1 centralized topology 17
2.2.2 fully distributed unstructured topology 17
2.2.3 semi-distributed topology 17
2.2.4 fully distributed structured topology 17-18
2.3 Kademlia Profile 18
2.4 topology 18-20
2.5 from the definition 20
2.6 k barrels 20-23
nbsp 2.7 RPC operations ; 23-24
2.8 node lookup mechanism 24-26
2.9 data stored 26
adding 2.10 nodes 26-28
2.11 nodes leave 28
2.12 k barrels refresh 28-30
3 server architecture design 30-40
3.1 drawbacks of existing server 30-31
3.2 Kademlia features 31-32
3.3 design ideas structural model 32-33
3.4 system processes 33-34
3.5 server 34-35
3.6 client processes 35-36 nbsp
3.7 server to retrieve information ; 36-37
communication method between 3.8 nodes 37
3.9 node lookup mechanism 37-38 <br / > 3.10 data stored mechanism 38
3.11 nodes join and leave 38-39
3.12 routing table refresh 39-40
4 based on Kademlia of game server architecture 40-55
4.1 double heterogeneous networks 40-42
4.2 local communications protocol 42-44
4.2.1 server save the information to the Kademlia network 42-43
4.2.2 client information from Kademlia search server 43-44
4.3 JSON format description 44-46
4.4 server Information Store achieve 46-47
4.5 used herein Kademlia protocol 47-51
4.5.1 PING 48
4.5.2 STORE 48-49
4.5.3 FIND_NODE 49-50
4.5.4 FIND_VALUE 50-51
4.5.5 REMOVE 51
4.6 core data structure 51-55
4.6.1 network ID 51-52
4.6.2 node design 52
4.6.3 routing Table 52-53
4.6.4 k barrels 53
4.6.5 communications package 53
4.6.6 routing table design 53-55
5 routing algorithm construct 55-61
5.1 routing table 55-57
5.2 in the routing table join node approach 57
5.3 delete nodes in the routing table method 57
5.4 Find the nearest specified node k nodes in the routing table algorithm 57-58
5.5 to find a specified node in Kademlia network method 58
5.6 prevent aging routing table 58-59
5.7 herein network each node exchange data publishing and retrieving data 59
5.8 59
5.9 serialization 59-61
6 summary and Outlook 61-63
6.1 summarizes 61
6.2 Looking 61-63
references published a master's degree during 63-66
papers 66-67
Thanks 67
Related dissertations
- Research of FTP Search Engine Indexing Technology Based on Kademlia
- Research on Load Balancing Using Virtual Servers for DHT-based P2P Network
- Research on P2P Topology Construct Algorithm Based on DHT
- Reasearch on the Security of P2P File Sharing System
- Research on Optimization of P2P System Based on Behavior Measurement
- Research on DHT Algorithm of SIP Based on P2P
- Research on P2P System Based on Improved Chord Protocal
- The Research of P2P Resources Location Algorithm Based on DHT and the Improvement of the Chord Protocol
- Development of Operational Telecommunication Video-on-Demand System Based on P2P
- Research of Object Name Service and Its Security
- Research on Compensation Technology of DHT data based on P2P streaming media
- Several Key Technologies Research on Network Domain of P2P-Voip System in Chinese Internet
- Research on Routing and other Key Technologies in Peer-to-Peer Networks
- Research on Key Technologies in Structured Peer-to-Peer Network
- Research on Direction-Based Search Algorithm in Mobile P2P Network
- Measurement Based Research on the Characteristics of K-bucket Against the eMule/Kad Network
- The Research of P2P Network Routing Algorithm Based on DHT
- Research on Routing Protocol of P2P Network System
- Kademlia - based P2P layered resource locator model
- The Research of DHT Resources Locating Model Based on Hierarchy