Research and Implementation of High Performance Rule Matching Key Technology for IPv6 Firewall

Author
JiangFeng
Advisor
WangXiaoDong , WangYongJun
School
National University of Defense Science and Technology
Major
Software Engineering
Classification
TP393.08 Computer Network Security
Degree
Master's thesis
Year
2011
Downloads
19
Citations
0

Request the full text

Abstract

With the development of Internet technology, network security issues become the focus of growing concern. As bridge between the internal network and external network security access, firewall plays an irreplaceable role in the Internet age. At the same time, due to lack of space as well as IPv4 IPv4 address many of the shortcomings exposed in Internet technology system will become inevitable IPv4 to IPv6 transition and transformation. Therefore, the IPv6-oriented high-performance firewall technology has become the focus of the field of network security. To eventually be able to achieve high performance in the Linux kernel IPv6 firewall, fast packet processing rules matching algorithm and key technologies in-depth study, mainly completed the following work: First, the architecture of the Linux firewall and processing processes carried out a detailed analysis of focus on the kernel packet processing, sending and receiving processes, Netfilter framework Hook management and IPtables mechanism of safety rules data structure organized and elaborated, test tone through the actual system, master key implementation details laid a good basis for the realization for the next step to achieve full IPv6 firewall; Secondly, in-depth analysis of firewall packet classification algorithm Research. Linux kernel based on sequential search algorithm rules match will result in the increase of the number of rules, especially in the application environments of enterprise-class firewall and core routers, a sharp decline in its performance. Typical of an optimization algorithm is based on a range of positioning HiPAC (High Performance Packet Classification for Netfilter) algorithm. The range is divided by each match, to build a B-tree matching rules into the positioning of the range. When the number of rules increases, its performance is much better than the matching algorithm in order to find the rules, and lookup speed is almost independent of the rules increase impact. However, HiPAC algorithm memory space consumption is too large, complex space-based exponential growth trend with growth of rules. IPv6 firewall features in the analysis of the existing IPv4 algorithm analysis found matching algorithm IPv4-based high-performance rules do not apply to IPv6, mainly due to the much larger IPv6 address space than IPv4, which will The address range increases sharply, making the space is very complex, and then one for high-performance IPv6 rule matching algorithm HiPACv6. The algorithm combines the respective advantages range positioning matching and linear matching compromise algorithm time complexity and space complexity. First, according to the protocol field and the characteristics of the destination port field, the entire rule set is divided into 20 sub-rule set, and then select the bit combination of the source IPv6 address and destination IPv6 address, build a binary search tree. Last 20 subsets were divided into several small set of rules. When packets match to a small set of rules, and then match the linear small rule set rules. Such firewall performance comparison the Linux kernel Ip6tables has improved greatly, and effectively control the use of memory. Finally, we implemented in the Linux kernel based on HiPACv6 algorithm IPv6 firewall prototype system and its key enabling technologies are analyzed, including the processing of HiPACv6 the UDP slice package HiPACv6 the encrypted message processing and bit selection method. Verified by experiment, a large set of rules (3000 rules), the communication bandwidth between the two Gigabit LAN hosts can still reach 700Mbps, much higher than the bandwidth of about Ip6tables 100M. Indicating that the based IPv6 firewall HiPACv6 algorithm to achieve the high processing performance to meet the enterprise-class firewall application needs.

Table of contents

Summary 9-11 Abstract 11-13 Chapter 1 Overview 13-16 1.1 subject background 13-14 < br /> 1.2 research the 1.3 research status on 14 14-15 1.4 papers organizational and structural arrangements 15-16 second Chapter Linux firewall architecture and process flow analysis 16-33 2.1 Linux kernel packet processing flow 16-21 2.1.1 Linux kernel packet processing overall process 16 2.1.2 Linux kernel packet sending process 16-19 2.1.3 Linux kernel package receiving process analysis 19-20 2.1.4 NIC transceiver Wen soft interrupt analysis 20-21 2.2 Netfilter framework 21-26 2.2.1 Netfilter framework 21-23 2.2.2 Linux kernel the hook point 23 2.2.3 hook management 23-25 ?? 2.2.4 the destination sockopt the management 25-26 2.3 Iptables mechanism 26-32 2.3.1 Iptables overall architecture of the analytical framework 26-27 2.3.2 Iptables data structure analysis 27-32 2.4 Netfilter / Iptables kernel user communication mechanisms 32 2.5 This chapter concludes are found; 32-33 Chapter IPv6 firewall high-performance the rules the matching algorithm HiPACv6 research 33-48 <br / > 3.1 packet classification algorithm 33-34 3.2 IPv4 firewall the speed rule matching algorithm analysis 34-41 3.2.1 overview of the high-speed rule matching algorithm 34 - 38 3.2.2 HiPAC algorithm 38-40 3.2.3 that choose HiPAC algorithm reasons 40 3.2.4 IPv6 lower HiPAC algorithm performance bottlenecks 40-41 3.3 an IPv6 high-performance rule matching algorithm HiPACv6 41-47 3.3.1 Analysis 41 the 3.3.2 an IPv6 high-performance rule matching The basic idea of ??the algorithm the 41-42 3.3.3 bits select Act 42-43 3.3.4 package matching process 43 3.3.5 HiPACv6 algorithm instance analysis 43-47 3.4 This chapter summarizes 47-48 Chapter IV system with the key technical analysis 48-62 4.1 Introduction to Linux Kernel Programming the 48-52 4.1.1 kernel programming and user mode programming 48 the 4.1.2 process context and interrupt context distinction 48-49 4.1.3 kernel programming synchronization mechanism 49 4.1.4 kernel and userland communication mechanism nbsp 49-50 4.1.5 kernel memory management function; nbsp 50 4.1.6 kernel development and debugging the 50-52 4.2 HiPACv6 algorithm Linux kernel to achieve 52-59 4.2.1 System Architecture ; 52 4.2.2 userland components to achieve 52-53 4.2.3 kernel part to achieve 53-58 4.2.4 kernel receives the command interface 58-59 4.3 key technologies and Difficulties 59-61 4.3.1 HiPACv6 UDP fragmented packet processing 59 4.3.2 HiPACv6, for the encrypted packet processing 59-60 4.3.3 Select Law difficulty analysis the 60-61 4.4 This chapter summarizes 61-62 Chapter V system testing and results analysis 62-65 5.1 IPv6 firewall prototype system configuration 62 5.2 test program design 62-63 5.3 the functional testing of firewalls algorithm the 63-64 5.4 Performance Analysis 64 5.5 This chapter summarizes nbsp 64-65 Chapter Summary and Outlook; 65-67 6.1 summarizes 65 6.2 Looking the 65-67 Acknowledgements 67-68 Reference nbsp academic achievement; 68-70 the author in the study period achieved 70

Related dissertations

  1. IPv6-based firewall system design and implementation
  2. Optimization Technology on Packet Filtering of Firewall
    NiCuiXia ·Ningbo University ·2013 ·Master's thesis
  3. Firewall and Log Analysis on Linux
  4. Realization and Application of IPv6Protocol Stack Based on WLAN
    Sun ·WRI ·2014 ·Master's thesis
  5. Research and Design on BACnet and IPv6for Intelligent Buildings Networking
  6. The Embedded Firewall Based on IXP425Network Processor Design
  7. Design and Implementation of Hybrid VPN Networking Formula Based on IPv6in Linux
  8. The Research and Design of Firewall Based on Flow-filtering Technology in IPv6Environment
  9. Design and Implementation of Firewall Based on the Behavior Detection
  10. Design and implementation of Firewall Based on content filtering software
  11. Configration and Analysis of Netfilter/Iptables in Linux Kernel
  12. Design and Implementation Based on Netfilter/Iptables Firewall
  13. Research and Implementation of Firewall Based on Mobile IPv6
  14. Linux IPv6 Firewall Design and Implementation
    LuXianLi ·Inner Mongolia University ·2007 ·Master's thesis
  15. IPv6 hardware firewall design and implementation of fast data channel
  16. IPv6 network security technology research
  17. Design and Implementation of IPv6 Transparent Mode Firewall with Virus Filtering
    ZhangKe ·Chongqing University ·2007 ·Master's thesis
  18. Design and Implementation of IPv6 Transparent Mode Firewall
    ZhangKe ·Chongqing University ·2007 ·Master's thesis
  19. Study and Implementation of Stateful InspectionTechnology in IPv6 Firewall
    ZhangKe ·Chongqing University ·2007 ·Master's thesis
  20. Research and Implementation of Personal Firewall Based on Windows
    WangCheng ·Hohai University ·2007 ·Master's thesis