首页 | 本学科首页   官方微博 | 高级检索  
     

Trie树路由查找算法在网络处理器中的实现
引用本文:张 琦,金胤丞,李 苗,等.Trie树路由查找算法在网络处理器中的实现[J].计算机工程,2014(1):98-102.
作者姓名:张 琦  金胤丞  李 苗  
作者单位:中国电子科技集团公司第三十二研究所,上海200233
摘    要:Trie树数据结构的实现方法灵活,所需存储器空间小,是实现高速路由查找和分组转发的理想选择。为满足10 Gb/s线速度网络处理器中微引擎的设计要求,提出一种基于最优平衡、多层存储的Trie树路由查找算法。建立一种平衡的压缩树结构,将该树中相邻的多层节点压缩到一个存储节点中。通过构造特定的数据存储结构来减小树的搜索深度,以空间换取时间,从而提高路由查找速度和分组转发效率。在网络处理器的查找微引擎设计中实现Trie路由查找算法,实验结果表明,单个微引擎的查找速度为4.4 Mb/s,能达到节省存储空间、提高查找效率的效果。

关 键 词:网络处理器  路由查找  最长前缀匹配  路径压缩  Trie树  算法实现

Implementation of Trie Tree Router Lookup Algorithm in Network Processor
ZHANG Qi,JIN Yin-cheng,LI Miao,ZHANG Jian-xiong.Implementation of Trie Tree Router Lookup Algorithm in Network Processor[J].Computer Engineering,2014(1):98-102.
Authors:ZHANG Qi  JIN Yin-cheng  LI Miao  ZHANG Jian-xiong
Affiliation:(The 32nd Research Institute of China Electronics Technology Group Corporation, Shanghai 200233, China)
Abstract:Trie tree data structure is flexible to realize and require small storage space, and it is the preferred to realize high speed routing lookup and packet forwarding. In order to meet the design requirements of micro engine of 10 Gb/s line speed in Network Processor(NP), an optimal balance, multilayer storage routing lookup algorithm based on Trie tree is proposed. That is to establish a balanced compression tree structure, then the adjacent multi nodes are compressed to a storage node. It constructs a specific tree structure to reduce the tree search depth, exchanging space for time, improving the efficiency of lookup and packet forwarding. Router lookup algorithm based on Trie tree is implemented in NP design, and the algorithm performance is analyzed. A single micro engine lookup speed is up to 4.4 Mb/s, and it has an advantage of small storage and high update speed.
Keywords:Network Processor(NP)  router lookup  the longest prefix matching  path compression  Trie tree  algorithm implementation
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号