Research and Design of Packet Classification Based on Netfilter

Author
LeiYuanMing
Advisor
ZhangDaFang
School
Hunan University
Major
Software Engineering
Classification
TP393.09 The application of computer network
Degree
Master's thesis
Year
2009
Downloads
174
Citations
10

Request the full text

Abstract

The development trend of the future network needs to provide users with a better quality of service, such as firewalls, virtual private network VPN, policy-based routing, high-level exchange to improve the quality of service mechanisms are built in the basis of efficient packet classification. In addition, out of security considerations or open-source characteristics, many applications have chosen Linux as its carrier. In this context, the framework of the Netfilter / iptables emerged to become the first integrated into the Linux kernel packet filtering solutions. But not perfect, and First the iptables core packet classification algorithm sharp decline in performance in the face of massive set of rules; Second, there are some problems in its implementation details, in particular, it is used in Netlink interact will cause packet classification interrupt. Network applications has become increasingly diverse circumstances, Netfilter / iptables increasingly unable to meet the current demand in urgent need of efficient packet classification system based on the Linux kernel. In this paper, the study of existing generic packet classification algorithm and analysis through in-depth exploration and source Netfilter / iptables framework based the iptables improvements based on, and construct a new classification system based on Netfilter package. Including the following points: (1) in the Linux kernel space an efficient packet classification based on multi-dimensional packet classification to range positioning algorithm. Meanwhile, the expansion of the algorithm, so that it can solve the problems the iptables introduced non-final state packet classification. Build efficient mechanism for the user interacts with the kernel. Netlink as kernel space and user space interface, each update to the kernel only submit a rule rather than the entire set of rules, not interrupt packet classification purposes. Proc I / O, users can also obtain the algorithm statistics and can set the maximum memory usage. 3. Protection system stability and compatibility. Take full advantage of Netfilter mechanism and the extensive use of existing kernel data structures. This approach would enable the new system to minimize changes to the kernel, the high stability of the security system; On the other hand, is conducive to the compatible-based the Netfilter packet classification system with iptables. The final test results indicate that the package classification system based on Netfilter maintain relative stability in the performance, especially in small packets and large rule set, its performance is superior to iptables.

Table of contents

Abstract 5-6 ABSTRACT 6-12 Chapter 1 Introduction 12-19 1.1 Background and Significance 12-13 1.2 Research 13-16 1.3 In this paper, the research and work 16-17 1.4 thesis structure 17-19 Chapter 2 NETFILTER / IPTABLES framework 19-36 2.1 LINUX operating system and its network process 19-21 2.2 NETFILTER mechanism 21-26 2.3 the IPTABLES the concept design 26-35 2.3.1 iptables functionality 26-29 2.3.2 iptables design 29-31 2.3.3 iptables realization 31-34 2.3.4 packet classification problem with iptables 34-35 2.4 Summary 35-36 Chapter 3 NETFILTER-based packet classification systems design and implementation 36-48 3.1 overall design based on of NETFILTER the packet classification system 36-38 Design and Implementation of the user to interact with the kernel mechanism the 3.2 packet classification system 38-47 3.2.1 Design Basis and why 38-39 3.2.2 Netlink interactive 39-42 3.2.3 Proc user interface 42-45 3.2.4 interface strings match simulation 45-46 3.2.5 user space integration 46-47 3.3 Summary 47-48 Chapter 4 packet classification systems design and implementation of the core packet classification algorithm 48-61 4.1 packet classification algorithm foundation 48-53 4.2 non-final state packet classification problems 53-54 4.3 core packet classification algorithm design overview 54-58 the the 4.3.1 kernel space and user space compatible 55-56 4.3.2 incremental hash 56 4.3.3 range positioning problem layer 56 4.3.4 multidimensional range positioning layer 56-57 4.3.5 link layer 57-58 the the 4.4 core packet classification algorithm implementation details 58-60 4.4.1 multidimensional range positioning problem tree recovery 58 4.4.2 lock mechanism 58-59 4.4.3 atomic counter snapshot 59 4.4.4 local match negated 59-60 4.5 Summary 60-61 Chapter 5 performance tests with the experimental results 61-67 5.1 performance test basis 61-62 5.2 performance test initialization and test environment to build 62-64 5.3 performance test results 64-65 5.4 Performance test results analysis 65-67 concluded 67-69 Reference 69-72 Acknowledgements 72-73 the Appendix A study for degree during the thesis 73-74 Appendix B to study the degree during participation in the project and the results obtained 74-75 Appendix C LINUX kernel data structures 75-76

Related dissertations

  1. Design of Embedded Construction Safety Video Monitoring System Based on S3C6410
    LiuZhengPing ·Hunan University ·2013 ·Master's thesis
  2. Statistical Waveform Packet Classification for Network Gateway
    LiuYiMing ·Harbin Institute of Technology ·2012 ·Master's thesis
  3. Research of120Emergency Vehicle Terminal Multi-channel Data Acquisition System Based on Beidou Navigation Satellite System
  4. Design of Embedded Motion Controller Based on ARM and Motion Control Chip
    ZhangYongZuo ·Harbin Engineering University ·2013 ·Master's thesis
  5. Stateful Packet Classification for Gateway
    JinZuoMei ·Harbin Institute of Technology ·2012 ·Master's thesis
  6. Research on Packet Classification Algorithms for Packet Filter Firewall
    GaoZengZuo ·Beijing Jiaotong University ·2014 ·Master's thesis
  7. Research and Application of an Efficient Packet Classification Algorithm Based on Multi-level Search
    ChenSheng ·Hunan University ·2013 ·Master's thesis
  8. The Research on IP Address Lookup and Packet Classification Algorithm
    XiongShuai ·Hunan University ·2013 ·Master's thesis
  9. Video Capture and Coding System Based on Embedded Systems
  10. Design and Implementation about ALSA Audio Driver Based on the ARM Platform
  11. Based on Design and Research of Beidou and GPRS Vehicle Terminal
  12. Research and Design of Water Stop Remote Terminal Based on Embedded System
    ChenHanLu ·Southwest Jiaotong University ·2013 ·Master's thesis
  13. Design and Implementation of Home Monitoring System Based on ARM
  14. Research of Ethernet/Ip and Modbus-TCP Communication Adapter Based on Dual-port RAM
    WeiYi ·Tianjin University of Technology ·2012 ·Master's thesis
  15. Design and Implementation of Self-tracking Robot
  16. Design and Implementation of Sensors Management Platform Based on Embedded System
  17. The Research of Protocol Identification Based on the Linux Firewall
    WuLiEn ·Wuhan University of Technology ·2012 ·Master's thesis
  18. The Researches and Applications on High Performance Packet Classification Technology
    BiXiaAn ·Hunan University ·2012 ·Doctoral dissertation
  19. Research and Implementation of Intelligent Home Gateway Based on Triple Play
    ZhangZuoFeng ·Yanshan University ·2012 ·Master's thesis
  20. The Generic Driver Framework Design of USB Wireless Network Adapter Based on Linux
    ChenLiPeng ·Jilin University ·2012 ·Master's thesis