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. |