Network data stream high-speed acquisition system design and implementation
- Author
- ChenWeiPing
- Advisor
- QinZhiGuang
- School
- University of Electronic Science and Technology
- Major
- Information and Communication Engineering
- Classification
- TP393.08 Computer Network Security
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 213
- Citations
- 3
Abstract
As mankind enters the information age, the relationship between the network and the people are getting closer and closer, it brought in a lot of convenience, but also brought a lot of new problems. Caused by the various countries, the company attaches great importance to the security of the Internet. Passive data capture technology is extremely rich applications, such as IDS, firewall software tcpdump for ethereal, snort adoption of this technology in the field of network security. As many application layer services into applications, making the carrying capacity of the network is very nervous. Due to CPU performance, handling mechanisms of the operating system and other reasons, traditional packet capture has been unable to meet the requirements of the gigabit network. Platform of high performance data acquisition is targeted at Internet backbone network data acquisition and data analysis equipment, support Gigabit and above network data acquisition and data analysis. It collected all data packets transmitted over the network; data analysis capabilities support from the link layer, IP layer, transport layer, until the application layer of the data analysis. The platform provides a convenient secondary development interface, this platform can facilitate the development of content-based network security devices, such as the IPS system DDOS defense system spam filtering systems, etc.. This study and to achieve a high-performance network data acquisition platform underlying packet capture subsystem. It combines \It is mainly several technical part consists of the following components: (1) memory mapping techniques. The system uses a memory-mapped technology, shared a memory area of ??the user space and kernel space. This area of ??memory used to store the data package and the necessary memory management data structures, and to provide support through the use and management of this shared memory for data packets in the high-speed transfer between kernel space and user space. (2) \The system will change the network packet submission process, data packet transfer process by the NIC to the upper application to bypass the kernel protocol stack to avoid copy data from kernel space to user space, thereby improving the efficiency of packet capture. (3) and the protocol reduction and processing system interface module. This system, the space of the user agreement to restore subsystem through the analysis and processing of network packets according to the level registered callback function. This treatment method to restore the upper-layer protocols and processing subsystem provides a high degree of flexibility, upper system combination can register different callback function to meet the needs of different scenarios. In addition, according to the project schedule and requirements Linux2.6 kernel equipped with a version of the PC on the network data stream high-speed acquisition system.
Table of contents
Abstract 4-5
Abstract 5-9
first chapter 9-12
1.1 Background 9-10
1.2 subject sources and research significance 10
1.3 papers 10-11
1.4 thesis structure 11
1.5 Summary 11-12
second chapter of passive data capture technology and the LINUX kernel mechanism Profile 12-29
2.1 passive data capture related technologies Profile 12-21
2.1.1 existing data package acquisition technology principle 12-13
2.1.1.1 Ethernet broadcast characteristics of listening 12-13
2.1.1.2 router or switch-based network underlying message monitor technology 13
2.1.2 existing packet capture technology 13-16
2.1.2.1 BPF: the BSD Packet filter 14-15
2.1.2.2 DLPI: Data Link Provider Interface 15-16
2.1.2.3 SOCK_PACKET socket: Linux System 16
2.1.3 LIBPCAP About 16-17
2.1.4 existing packet capture technology improved technology 17-20
2.1.4.1 NAPI 18
2.1.4.2 \
2.1.4.3 Memory mapping technology 19
2.1.4.4 TOE technology 19-20
2.1.4.5 each improved technology compared
2.1.5 passive data capture related Technical Summary 20-21
2.2 LINUX kernel mechanism Profile 21-29
2.2.1 kernel network protocol stack About 21-23
2.2.2 LINUX kernel module mechanism Profile 23-25
2.2.2.1 kernel module to write and compile 23-25
the
the 2.2.2.2 kernel module and process relationships 25
2.2.3 NIC Driver Profile 25-27
2.2.3.1 network driver 25-27
2.2.4 LINUX kernel memory mechanisms Profile 27-28
2.2.4.1 and release memory 27
2.2.4.2 physical page allocation and release 27
2.2.4.3 physical page allocation and release 27-28
2.2.5 LINUX kernel mechanism Profile summary 28-29
the Chapter network data flow high-speed acquisition system requirements described 29-43
3.1 network data stream high-speed acquisition system Introduction 29-36
3.1.1 network data stream high-speed acquisition overall system described 29
3.1.2 network data stream high-speed acquisition system Description 29-30
3.1.3 network data stream high-speed acquisition system requirements described 30-36
3.1.3.1 logical structure of the functional modules 30-31
the 3.1.3.2 system data flow 31-33
3.1.3.3 System Description 33-36
3.2 underlying data capture the subsystem requirements described 36-40
3.2.1 underlying data capture subsystem overall description 36
3.2.2 underlying data capture the subsystem functional modules logical structure 36-37
3.2.3 underlying data capture subsystem data flow 37-40
3.2.3.1 modified NIC driver module data flow diagram 38-39
the 3.2.3.2 VCDM module data flow diagram 39
3.2.3.3 upper layer protocol analysis and processing interface module data flow diagram 39-40
3.3 upper layer protocol analysis subsystem About 40-42
3.4 Summary 42-43
the
underlying data speed capture subsystem design and implementation of 43-66
4.1 underlying data capture the module overall design and implementation 43-45
4.1.1 modified NIC driver 43
4.1.2 kernel module build VCDM 43-44
4.1.3 protocol analysis processing interface module 44
4.1.4 network data remain the design and implementation of high-speed data acquisition system overall process 44-45
4.2 modify the NIC driver design and implementation of 45-47
the driver processes
4.2.1 RT8169 NIC 45-46
the
of 4.2.2 on RT8169 NIC driver modify 46-47
4.3 build the kernel module VCDM design and realization 47-54
4.3.1 important data structure design 47-50
4.3.2 VCDM memory allocation 50-52
4.3.3 NIC directly access the data cache DATA_BUF 52-53
4.3.4 User access method of BUSY_RING, FREE_RING, DATA_BUF state 53-54
4.4 interface design and implementation of protocol analysis and processing 54-63
4.4.1 protocol analysis and processing development interface design 54-57
4.4.2 the upper user space program workflow design and implementation of 57-60
4.4.3 modify the NIC drivers workflow design 60-62
4.4.4 system running state described 62-63
4.5 underlying data capture subsystem module function description 63-64
4.6 underlying data capture subsystem module compile, load and use 64-65
the
of 4.6.1 VCDM kernel module compiled and loaded 64
4.6.2 RT8169 NIC drivers compiled and loaded 64-65
4.7 Summary 65-66
system performance assessment 66-73
5.1 Functional Test 66-68
5.2 performance test 68-72
5.2.1 packet length under system to capture performance test 69-70
5.2.1.1 package of long-64B capture performance test 69
5.2.1.2 package of long-512B capture performance test 69
5.2.1.3 package of long-1500B capture performance test 69-70
5.2.1.4 Performance Test summarize 70
5.2.2, and LIBPCAP performance comparison 70-72
5.3 Test Summary 72-73
Chapter VI summarizes 73-75
Acknowledgements 75-76
the
References 76-78
pursuing graduate research during 78-79
Related dissertations
- 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
- Design of Synchronous Data Acquisition System on Noise Signal Location
- The Research and Design of E-government Security System Based on Honeypot
- The Design and Implement of Internet Monitoring Equipment
- Research and Implementation of Traffic Monitoring Technology for Identifier Separation and Mapping Network
- Research and Implementation of Intelligent Handheld RFID Reader
- Research on Data Interface of Hybrid Modeling System and Processing Technique for Huge Text File
- 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