Research on Packet Classification Algorithm and Its Application in Linux Firewall

Author
WeiJiaHao
Advisor
HouZhengFeng
School
Hefei University of Technology
Major
Computer Software and Theory
Classification
TP393.08 Computer Network Security
Degree
Master's thesis
Year
2006
Downloads
228
Citations
3

Request the full text

Abstract

With the rapid development of Internet, various network traffics are emerging,this requires the network device to provide wider bandwidth and quicker process ability. Packet classification is essential for policy-based firewall,intrusion detection, Qos, Virtual Private Network, traffic billing and so others, and is widely deployed within network devices such as routers and high-level switches.The thesis firstly introduces the research background, present study of the classification techniques, describes the main idea and characteristic of some typical algorithms. Further more, the thesis makes deep research on the RFC algorithm and finds out that it may run into memory explosion in some cases,such as large classifier, multiple fields and IPv6 environment. Then it proposes an enhanced algorithm called ERFC which processes two address fields and other fields differently and applies address fields with a geometry point location matching scheme.Moreover,the thesis gives analysis on implementation details of the current Linux netfilter/iptables firewall which adopts a low-performance linear rule matching policy. And as a significant real application of the classification techniques , the thesis design and implement a fast filtering module based on the ERFC algorithm to improve the Linux firewall.Finally, the thesis tests the related algorithms and the effect of filtering module on an integrated experiment platform which is based on Linux operating system. The result indicates that, compared with RFC and linear search algorithm, ERFC algorithm makes a good trade-off between speed and storage, and it is also proved that the ERFC-based filtering module makes a great improvement on linux firewall.

Table of contents

The first chapter 12-16 1.1 Packet Classification technology background 12-13 1.2 Packet Classification Techniques Research 13-14 1.3 packet classification techniques in firewall application 14 1.4 the main contents and structure of the arrangement 14-16 Chapter firewall technology 16-22 <br / > 2.1 firewall type 16-17 2.2 firewall key technology 17-19 2.3 firewall architecture 19-21 2.3.1 dual host host structure 19-20 2.3.2 screened host architecture 20-21 2.3.3 screened subnet architecture 21 2.4 chapter Summary 21-22 Chapter packet classification algorithm 22-29 3.1 packet classification problem definition 22 3.2 classic classification algorithms 22-28 3.2.1 classification linear search algorithm 22 3.2.2 Grid-of-tries algorithm 22-24 3.2.3 Cross-Producting algorithm 24-25 3.2.4 tuple space search algorithm 25-26 3.2.5 hierarchical intelligent segmentation algorithm 26-27 3.2 .6 HyperCuts algorithm 27 3.2.7 TCAM-based hardware algorithms 27-28 3.3 Chapter Summary 28-29 Chapter RFC classification Algorithm research and Improvement 29-40 4.1 RFC algorithm description 29-34 4.1.1 lookup process 29-30 4.1.2 pretreatment process 30-32 4.1.3 RFC algorithm example 32-34 4.2 RFC algorithm analysis 34-35 4.2.1 RFC performance of the algorithm 34-35 4.2.2 RFC algorithm shortcomings 35 4.3 RFC algorithm 35-38 4.3.1 RFC algorithm the improvement ideas 35-36 4.3.2 ERFC algorithm description 36-38 4.3.3 ERFC algorithm analysis 38 4.4 Summary 38-40 Chapter Linux firewall research and Improvement 40-57 5.1 Linux network stack hierarchy 40-41 5.2 packet in the kernel representation 41 5.3 packets sent and received 41-43 5.4 netfilter kernel framework analysis 43-47 5.4. 1 netfilter framework and protocol stack relationship 43-44 5.4.2 netfilter hook point and hook function 44-46 5.4.3 netfliter framework to achieve the IPv4 protocol 46-47 5.5 iptables firewall analysis 47-51 5.5.1 iptables and netfilter framework of relations 47-48 5.5.2 iptables rules and rules table 48-50 5.5.3 iptables firewall packet processing 50-51 5.6 ERFC algorithm based filtering lookup system design and implementation 51-55 5.6.1 filtering rules lookup module design 51-53 5.6.2 ERFC algorithm kernel implementation 53-55 5.6 .3 ERFC algorithm based on the rules of search module implementation 55 5.7 Chapter Summary 55-57 Chapter VI algorithm evaluation 57-62 6.1 Test platform for the establishment 57-59 6.1.1 test test environment 57 6.1.2 test Platform functional structure 57-58 6.1 .3 rule generation module 58-59 6.2 test results and Analysis 59-61 6.2.1 classification Algorithm spatial performance 59-60 <br / > 6.2.2 classification Algorithm -time performance 60-61 6.3 Chapter Summary 61-62 Chapter Summary and Outlook 62-63 <br / > References 63-66 master's degree of published papers 66

Related dissertations

  1. Research on Packet Classification Algorithms for Packet Filter Firewall
    GaoZengZuo ·Beijing Jiaotong University ·2014 ·Master's thesis
  2. Design and Implementation of IP QoS on Multi-core Network Processor
    LiHaiYan ·South China University of Technology ·2012 ·Master's thesis
  3. Research and Design of the Improved Recursive Flow Classification Based on IXP2400
    WuCeng ·Beijing Jiaotong University ·2008 ·Master's thesis
  4. Statistical Waveform Packet Classification for Network Gateway
    LiuYiMing ·Harbin Institute of Technology ·2012 ·Master's thesis
  5. Stateful Packet Classification for Gateway
    JinZuoMei ·Harbin Institute of Technology ·2012 ·Master's thesis
  6. Design and Implementation of Server Monitoring System Based on Traffic Information
  7. The Research and Design of the Internet Behavior Management System Traffic Management
    LiuZuo ·Chang'an University ·2013 ·Master's thesis
  8. Research and Application of an Efficient Packet Classification Algorithm Based on Multi-level Search
    ChenSheng ·Hunan University ·2013 ·Master's thesis
  9. The Research on IP Address Lookup and Packet Classification Algorithm
    XiongShuai ·Hunan University ·2013 ·Master's thesis
  10. Research and Implementation of Audit Monitor Firewall Based on the Framework of the Netfilter
    WuLiangMin ·Hunan University ·2012 ·Master's thesis
  11. Research of Intrusion Prevension System in IPv6Transition Environment
  12. The Design and Implementation of the Netfilter-Based Content Filtering System
  13. Configration and Analysis of Netfilter/Iptables in Linux Kernel
  14. The Design and Implematation of P2P Traffic Monitoring System
  15. Design and Implementation DPI and DFI-based System of Flow Identification and Control
  16. Internet P2P application signature extraction and flow control research
    KangDaoJie ·Yunnan University ·2013 ·Master's thesis
  17. The Researches and Applications on High Performance Packet Classification Technology
    BiXiaAn ·Hunan University ·2012 ·Doctoral dissertation
  18. A Novel Identity-Locator Seperation-based Protocol Stack Design and Implementation
  19. The Research and Application on Intranet IPv6Transition Technology
  20. The Research and Implementation of IPv4/IPv6Traslation Gateway Based on NAT-PT