PF_RING research and its application in high-speed acquisition of network flow

Author
LiuQing
Advisor
WangFeng , DengHui
School
Kunming University of Science and Technology
Major
Computer Software and Theory
Classification
TP393.06 Computer networks, test , run
Degree
Master's thesis
Year
2009
Downloads
175
Citations
0

Request the full text

Abstract

Network stream capturing means capturing protocol data unit under data link layer through technical means.Network-stream-capturing-related techniques include network interface card (NIC) programming, interruption management, device polling management, direct memory access (DMA), and so on.There are some problems in traditional network stream capturing techniques, including low capturing efficiency, high CPU utilization. Redundant data copy under traditional network stream capturing mode, when the captured packets are transimitted from the networkcard to user space applications, is a kind of reason of the above problems. In high-speed network, especially under the condition of high traffic and short packets, frequent interruptions to the network card will make the system get into a state of interrupted livelock. To adapt to the development of high-speed network and the requirement of high-speed network capturing, zero-copy, device polling and other mechanisms are presented. PF_RING is a new kind of zero-copy solution which provides a method to improve the performance of network stream capturing and donnot need to modify the NIC driver. Device polling mechanism is realized in the mode of NAPI under linux. NAPI is a technology that can improve network process efficiency. The main idea of NAPI is to introduce device polling instead of interruption. Because of many advantages, PF_RING has gradually become the main thecnique in current high-speed network environment.The thesis analyses the PF_RING principle and realization in depth, and points out the advantages and disadvantages of PF_RING mechanism. Based on PF_RING, it realized a new universal interface for developers to program with. PF_RING mechanism is successfully applied to Gigabit Intrusion Detection System, and it successfully enhanced the overall system performance.The main contens includes:(1) Analysis of the PF_RING realization in depth, it mainly includes PF_RING socket architecture and realization, realization of socket in linux kernel, PF_RING key data structures and funtions, and the PF_RING application interfaces:libpfring and libpcap-ring.(2) The thesis constructed a universal interface for developers to make fast development. In that way, it improved memory management and memory allocation. Improved PF_RING gives flexibility for users to add user-customized funtions to solve specific problems.(3) PF_RING mechanism together with NAPI is introduced into GIDS’s data capturing module. The author does some tests about network stream capturing based on PF_RING+NAPI mechanism, and gives out the theoretical analysis.(4) Implement the sensitive word matchment based on PF_PING. It satisfies the request in state security department for its advantages.

Related dissertations

  1. Research on Universal Packet Capture Technology Based on Multi-Core CPU
  2. The Research and Implementation of High-Speed Nic’s Data-Transmission
  3. Research and Implementation on Linux Packets Capturing of Gigabit Network
    WangLei ·Shandong University ·2007 ·Master's thesis
  4. Web Server Technology Research Based on Zero-copy
    WenLiLi ·Ocean University of China ·2011 ·Master's thesis
  5. Design and Implementation of an Efficient Method for FCoE Target Software
  6. Design and Implementation of Server End in Network Performance Tester Based on PowerPC Platform
    CaiYu ·Wuhan University of Technology ·2013 ·Master's thesis
  7. Research and Implementation of a High-performance Packet Capture System
    LiuBaoChen ·Shanghai Jiaotong University ·2013 ·Master's thesis
  8. Optimized Multiprocessor Implementation of LTE-Advanced User-Plane Protocol
  9. The Research and Implementation of Bt-Packet Capture and Inspection System in the High-Speed Network
  10. Research of Internet Sniffer Technique Based on Pattern Matching
  11. Research on Efficient Network Packet Transmission Mechanism Based on Zero-Copy
    ZhaoYanBai ·Harbin Engineering University ·2012 ·Master's thesis
  12. Trojan Detection System Based on Evidence of Communication Behaviors
  13. The Research and Implementation of Virtual Machine Live Migration in Cloud-Based Network Operating System
  14. Research and Realize on the Key Technology of HD Video Conference Terminal Product
    XieBing ·Chongqing Jiaotong University ·2012 ·Master's thesis
  15. Research and Design of Packets Collection System Based on Linux Multi-Core Platform
  16. Fleet of efficient communication system
    XiaoLiMin ·Institute of Computing Technology ·1998 ·Doctoral dissertation
  17. Zero-copy and scan detection technology in Intrusion Detection System
  18. Research and Implementation of Intrusion Detection System Based on Multilayer Perceptrons Neural Network
  19. Research and Realization of High Speed Data Transmission for TOE Network Card
  20. Research and Implementation of an Intrusion Detection System Design Scheme