作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2007, Vol. 33 ›› Issue (04): 17-19. doi: 10.3969/j.issn.1000-3428.2007.04.006

• 博士论文 • 上一篇    下一篇

基于压缩Trie树的以太网地址查找结构

陈 虎,张平健,奚建清   

  1. (华南理工大学软件学院,广州 510640)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-02-20 发布日期:2007-02-20

Ethernet MAC Address Lookup Architecture Based on Compacted Trie

CHEN Hu,ZHANG Pingjian,XI Jianqing   

  1. (School of Software Engineering,South China University of Technology,Guangzhou 510640)
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-02-20 Published:2007-02-20

摘要: 介绍了一种基于hash表和压缩trie树的查找与更新方法,每个hash桶中的4个地址节点按照trie树的方式组织,并压缩成一个25位字。基于FPGA实现时查找速度为133MSPS,IXP1200的一个微引擎每秒可完成1M次转发表更新。与采用片上嵌入式存储器的以太网交换芯片相比,查找过程可以减少一半的存储器访问带宽,转发表可放置到大容量片外存储器中,从而减少交换芯片面积和成本,显著降低hash表的冲突率。

关键词: Trie树, 以太网地址查找, Hash表

Abstract: Ethernet media access control (MAC) address lookup is one of the design challenges of high-performance Ethernet switch chips. In this paper,the trie of four address nodes in one hash bucket are compacted into a 25-bit word. The search procedure based on the compacted word is performed by a three-stage pipeline,which runs at over 133 MSPS on FPGAs. The address-learning algorithm can perform 1 million updating operations per second with one of six micro-engines in IXP1200. With this scheme,memory bandwidth in searching can be decreased by half,and the MAC address forward table can be placed in the high capacity commercial memory modules. Compared with the switch chips whose forward table is placed in the embedded memory,its hash table capacity is higher and the collision rate is much lower.

Key words: Trie tree, Ethernet address lookup, Hash table