Research and Implementation on Linux Packets Capturing of Gigabit Network
- Author
- WangLei
- Advisor
- WangMeiQin , WangXiaoYun
- School
- Shandong University
- Major
- Information Security
- Classification
- TP316.81
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 476
- Citations
- 10
Abstract
Passive data capture technology is extremely rich applications , such as IDS (Intrusion Detection System ) , firewall software tcpdump for ethereal , snort adoption of this technology in the field of network security . With many application layer services , such as VoIP, P2P and put into application , the carrying capacity of the network is very nervous . Due to CPU performance , handling mechanisms of the operating system and other reasons , the traditional packet capture has been unable to meet the requirements of the gigabit network , especially in the network traffic is relatively large , the system will be a large number of packet loss , the formation of a system-level bottlenecks . NAPI, device polling, zero-copy techniques have been proposed to solve this problem , zero-copy technology has been mature for routers, firewalls and other hardware design , it can make the application by modifying the network card drivers direct access to the network card in the kernel in memory. Luca Deri zero-copy based on a new solution : PF_RING mechanism . The PF_RING mechanism is not necessary to modify the network card driver. In the kernel , it is relying on an agreement with cache cluster PF_RING combined NAPI technology to improve the network card interrupt response frequency ; in the user space application can mmap means of network packets sent directly to the application layer of the user program . The PF_RING Is a for ordinary ordinary PC card . Abundant interfaces , performance superior software solutions . We have done a in PF_RING mechanism based on the work as follows : 1. Analysis of the the PF_RING principle and implementation process , and based on PF_RING kernel module . This part is divided into logical module loading and unloading , a registered PF_RING protocol cluster , initialize the ring buffer skb and other steps to add to the cache . 2. PF_RING libpcap interface and the process to achieve a two-tiered package . Snort software PF_RING to do the test , and done a comparative analysis on the basis of the test results . 3. The PF_RING mechanism in high-end embedded experiment platform (PowerPC 8540) , ready for further study of the high-speed network firewalls and intrusion detection systems .
Table of contents
Abstract 6-7
ABSTRACT 7-10
Chapter 1 Introduction 10-14
1.1 issues raised in the background and significance 10-11
1.2 working environment and experimental platform 11
1.3 research 11
1.4 papers organizational structure 11-14
Chapter 2 Introduction Linux kernel mechanism 14-28
2.1 kernel network structure 14-18
2.2 Linux kernel module mechanism 18-19
2.2 .1 kernel module was written and compiled 18-19
2.2.2 kernel module and process relationships 19
2.3 NIC driver profile 19-23 < br /> 2.4 Linux kernel other routine operations 23-28
Chapter 3 passive data capture technology 28-36
3.1 packet capture technology theoretical foundation 28-31
3.1.1 NIC in promiscuous mode (Promiscuous Mode) 28-29
3.1.2 BPF capture mechanism and socket socket programming 29-31
3.2 Libpcap Profile 31-32
3.3 problems 32-36
Chapter 4 PF_RING realization 36-48
4.1 PF_RING principle introduced 36-37
4.2 module loading and unloading 37-38
4.3 registration PF_RING protocol family 38
4.4 PF_RING protocol suite used 38-39
4.5 will be inserted into the ring buffer skb 39-40
4.6 proc realization 40-41
4.7 PF_RING of libpcap interfaces 41-44
4.8 use PF_RING packet capture 44-46
4.9 PF_RING and RTIRQ 46-48
Chapter 5 will be applied to the embedded PF_RING development platform 48-54
5.1 basic parameters embedded platforms 48-52
5.2 test 52-54
Chapter 6 test data Analysis and follow-up work 54-57
6.1 test results 54-55
6.2 PF_RING, PF_PACKET, zero-copy comparing and follow-up work 55-57
References 57-59
Thanks 59-60
thesis reviewers and the respondent Fact Sheet 60
Related dissertations
- Linux environment based on Intel Gigabit Ethernet high-speed packet capture platform for research
- PF_RING research and its application in high-speed acquisition of network flow
- Research and Realization of Fieldbus Conversion and Monitoring System Based on ARM
- The Research of CANopen Protocol Based on Embedded Systems
- Research and Realization of Embedded Wireless Sensor Networks
- Research and Application of Multi-Processing Load Balancing Technology Based on Multi-Core in Cloud Computing
- The Tailoring of Linux Kernel Based on Testing Coverage
- Porting and Research on Android Based on CK810
- Reseacrh and Realization of Steam Turbine Bearing Temperature Monitoring and Recording Embedded System Based on ARM
- Research and Application of Multifunctional Industrial Gas Manufactuirng Monitoring System Based on ARM Platform
- Research on Universal Packet Capture Technology Based on Multi-Core CPU
- Trojan Detection System Based on Evidence of Communication Behaviors
- The Design and Implement of Internet Monitoring Equipment
- Research and Implementation of Intelligent Handheld RFID Reader
- A Research of FRAM-based Linux Kernel Crash Dump Mechanism
- Realization on Achieving Wineserver Mechanism in the Linux Kernel
- Research of Auto-tracing and Analysis in Kernel Running of Linux2.6Based on ARM Simulation Platform
- Driver Development of PCIE Data Acquisition Card in Embedded Linux
- Design of a Source-Level Linux Kernel Debugger Based on Xen
- Multifunctional diary of the design and implementation of Android system based on mobile phone