| Efficient network packet transmission technology has applications in many fileds ofcomputer application technology, such as high-performance computer communicationsystems, high-performance router design, high-speed network firewall, especially inhigh-speed networks under real-time intrusion detection, it has been become a hot anddifficult research area. And how to achieve real-time environment in Gigabit packet captureand increase the reduction rate of the protocol stack is the key to improve the ability ofintrusion detection. This technology is extremely effective in improving the efficiency ofresource use computers to effectively improve the throughput of the network packettransmission. Invisible to save a lot of hardware and management resources. Therefore,efficient network packet transmission technology has important theoretical research value.In this paper, efficient network packet transmission technology focused on thefollowing two questions: The first question is how the existing system based on zero-copyfurther improves its performance. The basic idea of zero-copy is the implementation toprevent CPU in the transmission from the card to the user-state program, the coretechnology is the DMA data transfer and memory mapping. However, in the design of theexisting zero-copy, because the user-level programs can not directly control the card layer,caused many data synchronization problems between user-level programs and kernel modeprogram, Therefore, to improve the performance of the existing zero-copy limited. thispaper puts forward a realization plan of zero-copy based on NIC register mapping after thein-depth analysis of the defect of the existing zero-copy, the control of the card willtransferred from the kernel to user mode, so that the zero-copy system performance hasbeen improved significantly.The second problem is how to provides a highly efficient zero-copy based protocolreduction program. Currently based on zero-copy protocol stack in user mode are almostalways written in a separate user-level protocol stack, and some designs have emerged inorder to maximize the performance of multi-processor server, will use parallel processing ofprotocol stack design. However, due to user mode stack poor stability and cannot competewith the kernel processor in the high-speed network environment and other reasons causesof its performance bottlenecks. This paper, protocol stack in user mode will be replace bythe kernel stack, on the one hand to enhance the system stability, on the other handsignificantly improve the performance of the protocol stack. |