With the development of computer technology and network communication technology, people realized that using centralized router equipment with single-core processor is limited by the current processor technology level, it can only reach certain working frequency and processing ability, and already can’t meet the increasing computing and network business processing needs. In order to improve the processing performance of single node routers equipment, network equipment manufacturers use multi-core distributed router to handle business. Multi-core parallel processing can take into account both performance and flexibility of the business and distributed parallel processing business. So it meets the users’ demands on a single point of router equipment with high business processing ability.The PPP protocol, as currently the most widely used WAN link layer protocol, provides full-duplex operation on a point-to-point link, so it is the first selection to realize communication between router equipment. In this article, the PPP protocol module was designed and implemented on the basis of detailed analysis of the PPP protocol and the multi-core distributed router in Comware software platform. The PPP module was designed with distributed technology and multi-core technology. Distributed master control board is mainly responsible for core control system like configuration management etc. Distributed interface board under the control of the master control board can forward packet independently and process protocol’s negotiation. At the same time, the control function and message forwarding function of PPP protocol are put on different processor cores in order to achieve the purpose of improving the efficiency of the PPP protocol processing. The implementation of PPP module uses modulation, it can accomplish by the three sub-module of user space and a sub-module of kernel space. Among them, the communication between each module use different types of sockets provided by Comware system. At the same time, using the epoll multiplexing mechanism to process parallelized of multiple sockets. This article emphasis on the implement of the PPP protocol negotiation, sending and receiving data packets and the process of configuration management. Finally the function and performance of the system of the PPP module are tested through setting up the test environment to assure quality of the modules. |