Thread pool mechanism based DHCP server performance Research and Implementation
- Author
- MengFanYan
- Advisor
- DuChengLie
- School
- Northwestern Polytechnical University
- Major
- Computer Science and Technology
- Classification
- TP368.5 Servers, workstations
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 233
- Citations
- 6
- High-performance DHCP server
- Multithread technique
- thread pool mechanism
- dynamic pool size adjustment algorithm
- algorithm of lock grain size
Abstract
With the flourishing development of Internet, IP address resources come more and more short. DHCP service is the effective way of solving IP address resource shortage problem on the basis of existing IPv4.At present, most DHCP servers deal with requests of client serially by the single thread. If it is applied to large-scale network management, the reaction speed is not quick and efficiency is not very high. Applying multithread technology to DHCP server and realize it by the thread pool mechanism is a very effective method which improves DHCP server’s performance at present.The paper has probed into BOOTP and DHCP workflow at first, and then it expanded the measure of DHCP API. This method also solved several problems including the security of DHCP servers; classify the client and collection of information.Then it has studied High-performance DHCP server on the basis of the pool mechanism of the thread. It has probed into the problems of using multithread and thread pool. It gave thoughts to the mutes of shared data and prevention of dead lock. It put forward the algorithm of lock grain size. And analyzed that advantages and risks of the thread pool as well as mend dynamic pool size adjustment algorithm. And has designed overall high-performance DHCP server based on pool mechanism of the thread.Main component implementation method of high-performance DHCP server based on pool mechanism of the thread in thesis has been analyzed and some key codes have been provided, it tested the function and performance of high-performance DHCP server based on pool mechanism of the thread, it has analyzed the contrast to traditional DHCP server and performance of high-performance DHCP server based on pool mechanism of the thread.Finally, it summarizes the work of the thesis and points out the locality that needs improvement and further development to perfect.
Table of contents
The first chapter 8-16
1.1 Background 8-10
1.1.1 Objective 8
1.1.2 research status 8-10
1.2 Project Background 10-12
1.2.1 project to achieve functional 10
1.2.2 project support physical network 10-12
1.2.3 DHCP server subproject 12
1.3 topics sense 12-14
1.3.1 IP Address Management Industry Applications 12-13
1.3.2 IP address management industry in the development of our country 13
1.3.3 topics theoretical and practical significance 13-14
1.4 thesis contents and organization 14-16
1.4.1 thesis main content 14
1.4.2 papers organization and structure 14-16
Chapter DHCP technology applied research 16-28
2.1 BOOTP work process 16-17
2.2 DHCP working process 17-21
2.3 DHCP and BOOTP message format analysis 21-23
2.4 DHCP API method 23-28
2.4.1 DHCP API principle of the method 23-25
2.4.2 DHCP API methods to solve security issues DHCP 25
2.4.3 DHCP API classification method to solve customer problems 25-26
2.4.4 DHCP API methods to solve the problem lease collected 26-27
2.4.5 DHCP API methods for assessing 27-28
Chapter 3 System Analysis and Design 28-55
3.1 traditional DHCP server analysis 28-31
3.1.1 Traditional DHCP server framework 28-29
3.1.2 Traditional DHCP server workflow 29-30
3.1.3 Traditional DHCP server discussion 30-31
3.2 multithreading technology 31-40
3.2.1 -threaded and multi -threaded 31-32
3.2.2 thread data processing 32-33
3.2.3 multithreaded program run time model 33-34
3.2.4 The use of shared data 34-36
3.2.5 Deadlock Prevention and concurrency control strategy 36-40
3.3 thread pool mechanism 40-51
3.3.1 Advantages of the thread pool 40-41
3.3.2 thread pool risk analysis 41-43
3.3.3 thread pool mechanism Research 43-44
3.3.4 Guidelines for using the thread pool 44
3.3.5 thread pool size of the adjustment and optimization 44-48
3.3.6 thread leak prevention and inspection 48-51
3.4 DHCP server performance overall design 51-55
3.4.1 Frame structure design 51-52
3.4.2 Process Design 52-54
3.4.3 client request processing logic design 54-55
Chapter 4 System Implementation and Testing 55-72
4.1 system implementation 55-66
4.1.1 development environment 55-56
4.1.2 thread linked list implementation 56-58
4.1.3 task queue implementation 58-59
4.1.4 thread scheduling module (thread scheduling) to achieve 59-61
4.1.5 thread pool size adjustment module (adjustment) to achieve 61-63
4.1.6 thread pool performance monitoring and reporting module 63-64
4.1.7 thread calls execute module implementation 64-65
4.1.8 distribution request module implementation 65-66
4.2 system test 66-72
4.2.1 test environment configuration 66-67
4.2.2 Functional Test 67-70
4.2.3 Performance Test 70-72
Chapter Summary 72-73
papers published during the master's degree 73-74
Thanks 74-75
APPENDIX A. Abbreviations and symbols commonly used instructions . 75-76
APPENDIX B. graph paper illustration index (1) 76-77
APPENDIX B. graph paper illustration index (2) 77-78
APPENDIX C. part of the source code listing 78-80
APPENDIX D. Some of the key code 80-85
References 85-88