郜国良, 李广军. 一种基于Trie的快速IP路由查找算法[J]. 微电子学与计算机, 2011, 28(6): 163-167.
引用本文: 郜国良, 李广军. 一种基于Trie的快速IP路由查找算法[J]. 微电子学与计算机, 2011, 28(6): 163-167.
GAO Guo-liang, LI Guang-jun. A Fast Routing Lookup Algorithm Based Trie[J]. Microelectronics & Computer, 2011, 28(6): 163-167.
Citation: GAO Guo-liang, LI Guang-jun. A Fast Routing Lookup Algorithm Based Trie[J]. Microelectronics & Computer, 2011, 28(6): 163-167.

一种基于Trie的快速IP路由查找算法

A Fast Routing Lookup Algorithm Based Trie

  • 摘要: Internet的飞速发展要求核心路由器能够实现快速的分组转发和路由更新功能, 实现这一功能的关键是路由表的组织结构和快速的路由查找算法.提出了带有转发域信息树的多分支Trie结构路由查找算法, 它由固定步长的多分支Trie结构的路由表和转发域信息树两部分组成.对于一个长度为w的路由前缀, 其查找、插入、删除路由的时间复杂度均为O ((w-m)/n+1), 其中m、n为Trie树的步长.它解决路由查找过程中快速更新的问题, 具有算法简单、查找速度快、易于更新、空间利用率高、便于向IPv6过渡等优点.

     

    Abstract: With rapid development of Internet, it orders the core router to have the ability of high speed packets forwarding and fast updating.The key to implement this function is data structure of router table and lookup algorithm.This paper proposes a new scheme based multibit Trie tree with a next-hop tree.It consists of a fixed stride routing table based Trie tree and a next-hop tree.For a routing prefix whose length is w, the time for search, insertion, deletion operation are all O ((w-m)/n+1), where m and n are both stride of Trie tree.It solves IP lookup problem with fast updates and has the advantage of simple algorithm, fast lookup and updating easy, and high memory utilization and transition to IPv6 convenient.

     

/

返回文章
返回