An Efficient Packet Capture Method for High Speed Network and It’s Implementation

Author
ZhangDunXing
Advisor
ZhangDaFang
School
Hunan University
Major
Software Engineering
Classification
TP393.06 Computer networks, test , run
Degree
Master's thesis
Year
2007
Downloads
219
Citations
3

Request the full text

Abstract

With the rapid development of network technologies, networks are becoming more and more complicated as the scales of networks are expanding. New applications are emerging and the heterogeneity of networks is deepening. It is necessary to monitor traffic in real time and manage networks on-line. Through network traffic measurement, we can obtain the details of the traffic, such as link utilization, the distribution of the different protocols, the distribution of packet size, and so on. It is helpful for the maintenance and management of networks and facilitates the design of networks.There are many challenges in high-speed network traffic monitoring. One of the most important bottlenecks is packet capturing. Because of hardware capability and operating system overhead limitations, the existing network traffic monitoring tools based on software can only work at low speed network with the link rate below 100Mbps. This thesis mainly focuses on the key issue to perform packet capture for high-speed network with SMP machine. To achieve this point, a novel algorithm named tagged-cell algorithm has been proposed to monitor full duplex Gigabits links. We also developed a new traffic capture method based on shared memory mechanism to improve the efficiency of the packet capture. Both the algorithm and the method have been successfully implemented in the CNGI network traffic monitoring system.The main works of this thesis are described as following.(1) Proposed and implemented an efficient packet capture method with SMP machine. Combined with the tagged-cell algorithm, we can fully explore SMP machine’s parallel execution capability to perform concurrency traffic capture with double GE NIC. By the use of the cell’s tag to identify the status of the packet buffer, the synchronization with n-producers/1-consumer problem is simplified. The new proposed algorithm also reserved the advantages of the present algorithm, such as making use of the two small critical sections instead a large one to improve SMP machine’s parallel execution capability.(2) After analyzing network traffic monitoring technique and the packet travel mechanism under Linux system, take the advantage of NAPI, we proposed an efficient packet capture method for high speed network based on shared memory.(3) Finally, we implement an efficient packet capture platform with SMP platform. The platform contain with these two features. First, make full use of SMP machine’s parallel execution to achieve traffic capture with double NIC; Second, take the advantage of share memory, packet receive path from NIC driver buffer to user level application has been shorten. The results of the experiment showed that the platform we developed is more efficient than Libpcap and kernel module based method. The performance of packet capture with the platform has been improved significantly and can capture/process nearly all packets at line speed under Gigabit network.

Table of contents

Abstract 8-9 Abstract 9-13 Chapter 1 Introduction 13-19 1.1 Network Traffic Monitoring significance 13-14 1.2 network traffic capture technology research status 14-18 1.3 The main contents 18-19 Chapter 2 network traffic capture technology 19-29 2.1 Basic concepts of network traffic 19-21 2.1.1 Network Traffic define 19 2.1.2 network traffic 19-20 2.1.3 Flow (Flow) The basic concept 20-21 2.2 network monitoring basic principle 21-25 2.2.1 Ethernet monitoring technology 21 2.2.2 NIC mode 21-22 2.2.3 Interrupt Livelock with NAPI technology 22-25 2.3 Classification and performance space technology research 25-29 2.3.1 Classification of network traffic capture technology 25-26 2.3.2 performance headroom exists 26-29 Chapter 3, the network traffic acquisition program performance comparison test 29-37 3.1 Libpcap based traffic data collection program 29-31 3.1.1 Libpcap packet capture capability test 29-30 3.1.2 Libpcap program performance analysis 30-31 3.2 based KTAM traffic acquisition program 31-33 3.2.1 KTAM packet capture capability test 31-32 3.2.2 KTAM deep packet analysis proficiency test 32-33 3.2.3 KTAM program performance analysis 33 3.3 DAG-based traffic acquisition program 33-37 3.3.1 DAG Features 34-35 3.3.2 DAG deep packet analysis proficiency test 35-36 3.3.3 DAG program performance analysis 36-37 Chapter 4 SMP systems based on high-speed link packet capture algorithm 37-49 4.1 packet capture system structure 37-39 4.1.1 logical structure 37-38 4.1.2 Physical Structure 38-39 4.2 algorithm 39-43 4.2.1 single producer solutions 40-41 4.2.2 Multi producers solutions 41-43 4.3 unit label algorithm 43-46 4.3.1 Algorithm 43-45 4.3.2 Algorithm evaluation 45-46 4.4 unit label algorithm on SMP systems defect analysis 46-48 4.4.1 unit scheduled disorder 46-47 4.4.2 synchronization overhead problem 47-48 4.5 Chapter Summary 48-49 Chapter 5, based on multi-space memory shared packet capture program 49-62 5.1 system architecture 49-51 5.1.1 Technical Features 49 5.1.2 module division 49-51 5.2 underlying data packet capture driver module design 51-54 5.2.1 Module Function 51-52 5.2.2 driver module interrupt and NAPI mode realization 52-54 5.3 shared memory management module design 54-58 5.3.1 Shared Memory Management module logical structure 54-56 5.3.2 Shared Memory in the interrupt and NAPI mode application 56-58 5.4 sharing scheme based on multi-space memory performance test analysis 58-61 5.4.1 packet capture capability test 58-59 5.4.2 deep packet analysis proficiency test 59-61 5.5 Chapter Summary 61-62 Summary and Outlook 62-63 References 63-67 Thanks 67-68 Appendix A catalog published during the master's degree 68-69 Appendix B master's degree during the registration of patents and software 69-70 Appendix C to participate in research projects during the master's degree 70

Related dissertations

  1. High-speed network intrusion detection system design and implementation
  2. Research and Implementation of a High-performance Packet Capture System
    LiuBaoChen ·Shanghai Jiaotong University ·2013 ·Master's thesis
  3. The software bus and self recovery technology based on VxWorks
    JinPengFei ·Shaanxi Normal University ·2013 ·Master's thesis
  4. Shared Memory Based Research and Design of OLE Process Control3.0Server
    WangChengXiang ·Jilin University ·2013 ·Master's thesis
  5. Research on Router and Switch System Based on Shared Memory Architecture
    ZuoTian ·WRI ·2012 ·Master's thesis
  6. Design of AFDX Swtich Chip Based on Shared Memory
    LiuYu ·Shanghai Jiaotong University ·2013 ·Master's thesis
  7. Design of Battery Formation Test System Based on Internet of Things
    WuLePing ·Wuhan University of Technology ·2013 ·Master's thesis
  8. Research on Universal Packet Capture Technology Based on Multi-Core CPU
  9. Research on link layer frame structure based on the network encryption card
    ZhaoHui ·Heilongjiang University ·2012 ·Master's thesis
  10. The Research and Implementation of Bt-Packet Capture and Inspection System in the High-Speed Network
  11. Research of Intrusion Detection System in IPv6High Speed Network
  12. Study and Realization on the Key Technology of Network Information Audit
  13. Analysis and Design of Intrusion Detection System for High-Speed Network
  14. The army level intrusion defense system in data communication and control technology research
  15. The Design of Client Access Control System Based on the Winpcap
    GuoZhiYu ·Chongqing University ·2012 ·Master's thesis
  16. The Research and Design of Network Instrusion Detection System Based on Protocol Analysis
  17. The Method of Host IP Outflow Estimate Based on Initiative Probe
  18. Lanuser Interested Information Mining Research Based on Network Monitoring
  19. The Techniques of Network Information Content Audit
  20. Design and Implementation of VLR Database Based on the Shared Memory