Research and Implementation of RFC Algorithm in Linux Firewall

Author
SongXu
Advisor
ZhaoZiXiang
School
Dalian Maritime University
Major
Computer Science and Technology
Classification
TP393.08 Computer Network Security
Degree
Master's thesis
Year
2010
Downloads
120
Citations
1

Request the full text

Abstract

With the rapid development and extensive use of the internet in the worldwide, Computer network has become the basis of the information society and penetrated into every corner of society.In the early stage, router and firewall——the main equipment of data transmission, forwarded the packet without distinguishing.But this approach was unable to meet the current needs of the community people on the network. Therefore, in order to gratify different users, routers need to classify the transmission’s data, which should provide different network services.The packet classification technology became the foundation of differentiated services which includes packet filtering firewall, network intrusion detection, VPN, policy routing and so on.Based on the idea of classifying and then disposing each packet, it has also become a performance bottleneck in the modern high-speed network. So we need a high-speed packet classification algorithm, this is also a difficult problem that must be solved currently.In this paper, the background, the current situation and the applications of the packet classification algorithm have been analyzed. Based on the study of the advantages and disadvantages of the present several classical packet classification algorithms and the main idea, we considered a category faster packet classification algorithm-RFC (Recursive Flow Classification) algorithm as its research target. The research indicates that when the algorithm’s rule set increases rapidly, the space which has been occupied of RFC algorithm will also increase rapidly. To solve the problem, this paper puts forward an improved algorithm-CRFC algorithm, and the algorithm’s optimization and implementation in the Linux firewall. CRFC algorithm takes space and time performance into account synthetically. According to the original RFC algorithm’s each element characteristics in constructing the index cross-product table, it takes a compression method to the index cross-product so as to achieve optimization of the original algorithm in the storage space.In order to achieve efficient performance of CRFC algorithm, the paper also carried out in-depth study to the Linux firewall, as the old Linux firewall adopted the linear matching during the rules search of the data packet, which may become a performance bottleneck. To solve this problem, I adopt CRFC algorithm to find the packets in the netfilter framework of the Linux firewall and write it into the Linux kernel. Through the improvement of the algorithm, the performance of Linux firewall has achieved a certain increase.Finally, by setting up the experimental test environment, I have analyzed both the performance of the CRFC algorithm and its practical application in the Linux firewall. Moreover, I have also made a comparison between the experimental results of the linear algorithm, RFC algorithm and CRFC algorithm, which prove that CRFC algorithm give rise to a certain improvement and enhancement of the performance of Linux firewall.

Related dissertations

  1. The Study of Linux IPv6 Firewall Based on HiCuts Algorithm
    DanFuYong ·Dalian Maritime University ·2009 ·Master's thesis
  2. Statistical Waveform Packet Classification for Network Gateway
    LiuYiMing ·Harbin Institute of Technology ·2012 ·Master's thesis
  3. Stateful Packet Classification for Gateway
    JinZuoMei ·Harbin Institute of Technology ·2012 ·Master's thesis
  4. Research on Packet Classification Algorithms for Packet Filter Firewall
    GaoZengZuo ·Beijing Jiaotong University ·2014 ·Master's thesis
  5. Research and Application of an Efficient Packet Classification Algorithm Based on Multi-level Search
    ChenSheng ·Hunan University ·2013 ·Master's thesis
  6. The Research on IP Address Lookup and Packet Classification Algorithm
    XiongShuai ·Hunan University ·2013 ·Master's thesis
  7. The Researches and Applications on High Performance Packet Classification Technology
    BiXiaAn ·Hunan University ·2012 ·Doctoral dissertation
  8. Research on Storage and Power Efficiency Packet Classification Algorithm Based on TCAM
    TianLe ·PLA Information Engineering University ·2013 ·Master's thesis
  9. Design and Implementation of IP QoS on Multi-core Network Processor
    LiHaiYan ·South China University of Technology ·2012 ·Master's thesis
  10. Wireless Sensor Network Routing Algorithm and Embedded Implementations
  11. Research on the Network Traffic Classification and Control Technologies Based on Hidden Markov Model
    LiZuo ·Chongqing University ·2012 ·Master's thesis
  12. Research on Key Technologies in Mobile Ad Hoc Networks
    ChenZuo ·University of Science and Technology of China ·2007 ·Doctoral dissertation
  13. Research on the Key Technologies of Quality of Service in WCDMA Core Networks
    PengKai ·Huazhong University of Science and Technology ·2006 ·Doctoral dissertation
  14. High - speed packet classification co-processor and network platform
  15. Research on High Performance IP Route Lookup and Packet Classification
    ZhengKai ·Tsinghua University ·2006 ·Doctoral dissertation
  16. Research on Models, Algorithms and Implementations of Traffic Control Based on Network Processor
    ZhengBo ·Tsinghua University ·2006 ·Doctoral dissertation
  17. Research on High Speed IP Routing Lookup and Packet Classification Algorithms
  18. Studies on CQS in High-Speed Network Elements
    DuDeChao ·Zhejiang University ·2003 ·Doctoral dissertation
  19. The Study on High-speed Algorithms of Packet Classification and Its Implement Techniques
  20. High Speed Network Protocol Identification Research Based on Content Analysis