A Study on the Efficient Algorithm for Converting Range Matching Rules into TCAM Entries in the Packet Filtering System

패킷 필터링 시스템에서 범위 규칙의 효율적 TCAM 엔트리 변환 알고리즘 연구

  • Kim, Yong-Kwon (Division of Info. & Comm. Eng., Kongju Nat. Univ.) ;
  • Cho, Hyun-Mook (Division of Info. & Comm. Eng., Kongju Nat. Univ.) ;
  • Choe, Jin-Kyu (School of Info. Tech. & Multimedia Eng., Hannam Univ) ;
  • Lee, Kyou-Ho (School of Electronics and Telecomm. Eng., Inje Univ.) ;
  • Ki, Jang-Geun (Division of Info. & Comm. Eng., Kongju Nat. Univ.)
  • 김용권 (공주대학교 정보통신공학부) ;
  • 조현묵 (공주대학교 정보통신공학부) ;
  • 최진규 (한남대학교 전자정보통신공학부) ;
  • 이규호 (인제대학교 전자정보통신공학부) ;
  • 기장근 (공주대학교 정보통신공학부)
  • Published : 2005.07.01

Abstract

Packet classification is defined as the action to match the packet with a set of predefined rules. One of classification is to use Ternary Content Addressable Memory hardware search engine that has faster than other algorithmic methods. However, TCAM has some limitations. One of them is that TCAM can not perform range matching efficiently. A range has to be expanded into prefixes to fit the boundary. In general, the number of expansion could be up to 2w-2, where w is the width of the field. For example, if two range fields with 16 bits are used, there could be up to $30\;{\times}\;30\;=\;900$ expansions for a single rule. In this paper, we describe the novel algorithm for converting range matching rules into TCAM entry efficiently. The number of maximum entry is 2w-4 when using the algorithm. Furthermore, it has also benefit about the negation range. In the result of experimentation, the new scheme practically reduces 14 percent in case that searched fields are source port and destination port number.

패킷 분류란 규정된 규칙과 입력된 패킷의 헤더 필드를 검색하여 매칭 여부를 판단하는 것으로 하드웨어적인 패킷 필터링 시스템은 일반적으로 Ternary Content Addressable Memory를 사용하여 구현된다. 하지만 TCAM은 구조적인 특성으로 인해 범위 규칙을 효율적으로 분류할 수 없기 때문에 기존의 필터링 시스템에서는 주어진 범위를 대표할 수 있는 prefix 형태의 값으로 범위를 변환하고 변환된 값을 TCAM 엔트리에 저장하여 패킷 필터링 을 수행하며, 이 경우 범위 규칙의 필드가 W비트일 때 최대 2W-2 개의 엔트리가 필요하다 범위 규칙이 일반적으로 패킷 헤더 필드 중 소스포트와 목적지포드 필드에 사용되는 것을 고려하면 하나의 규칙이 최대 900개의 엔트리를 점유하게 된다. 본 논문에서는 범위 규칙을 TCAM 엔트리로 변환시 점유 엔트리 수를 줄이기 위해 범위 규칙을 대칭성을 가지는 그레이 코드로 변환한 후 범위를 대표할 수 있는 TCAM 엔트리로 변환하는 알고리즘을 제시하였다. 제안된 알고리즘은 최대 2W-4 개의 TCAM 엔트리로 변환되며, 모든 범위에 대해 기존의 방법 보다 항상 더 적은 수의 TCAM 엔트리를 생성한다 또한 negation 범위에 대해서도 효율적으로 적용 할 수 있다. 시뮬레이션 결과 16 비트의 범위 매칭에 대해 기존의 방법보다 제안된 알고리즘이 평균 7%의 TCAM 엔트리를 감소시킬 수 있으며, 패킷의 소스와 목적지 포트를 동시에 고려하는 경우 평균 14%를 절감할 수 있고, 실제 사용되고 있는 침입탐지 프로그램의 범위 규칙에 적용시킨 결과 10% 정도의 TCAM 엔트리를 절약할 수 있음을 보였다.

Keywords

References

  1. IEEE Network Special Issue v.15 no.2 Algorithms for Packet Classification Pankaj Gupta;NlCk McKeown
  2. Hardware Assisted Packet Filtering Firewall Shubhash Wasti
  3. A Search Algorithm far Table Entries with Non-contiguous Wildcarding Paul Francis Tsuchiya
  4. Proceedings of ACM SIGCOMM'98 Fast and Scalable Layer Four Switching Srinivasan, V.;George Varghese;Subhash Suri;Marcel Waldvogel
  5. INFOCOM 2003 Packet Classification far Core Routers: Is there an alternative to CAMs? Florin Baboescu;Sumeet Singh;George Varghese
  6. Proc. ACM Sigcomm Packet Classification using Tuple Space Search Srinivasan, V.;Suri, S.;Varghese, G.
  7. Proc. ACM Sigcomru High-Speed Policy-based Packet Forwarding Using Efficient Multi- dimensional Range Matching Lakshman, T.V.;Stiliadis, D.
  8. ACM Sigcomm Scalable Packet Classification Florin Baboescu;George Varghese
  9. Proc. Hot Interconnects VII v.20 no.1 Packet Classification Using Hiemrchica1 Intelligent Cuttings Gupta, P.;McKeown, N.
  10. Proc. ACM Sigcomm Packet Classification Using Multidimensional Cutting Sumeet Singh;Florin Baboescu;George Varghese;Jia Wang
  11. IEEE Journal on Selected Areas in Communications v.21 no.4 Fast and scalable packet classification Jan van Lunteren;Ton Engbersen
  12. ICNP 2003 Packet Classification Using Extended TCAMs Ed Spitznagel;David E. Taylor;Jonathan S. Turner
  13. GLOBECOM2001 no.1 Design of multi-field IPv6 packet classifiers using ternary CAMs Huang, Nen-Fu;Chen, Whai-En;Luo, Jiau-Yu;Chen, Jun-Min
  14. INFOCOM 2003 CoolCAMs: Power-Efficient TCAMs for Forwarding Engines Girija J Narlikar;Anindya Basu;Francis Zane
  15. Survey & Taxonomy of Packet Classification Techniques David E. Taylor
  16. ACM SIGCOMM Computer Communication Review v.34 Tree bitmap: hardware/software IP lookups with incremental updates Will Eatherton;George Varghese;Zubin Dittia
  17. SiberCore
  18. SNORT