Scientific Journal of Control Engineering June 2013, Volume 3, Issue 3, PP.147-154
IPv6 Routing Search Algorithm by Applying Trie and Binary Search Chao Chen Network Management Center, Sichuan University of Technology & Engineering, Sichuan Zigong 643000, China #
Email: cynet525@139.com
Abstract Because of increase of the address length under IPv6, the treatment burden of router is heavier; it is unable to meet the new demand to a lot of algorithms that is existing after expanding to IPv6 at present. So, for reaching very good adaptability to IPv6, routing search algorithms must have very good performance to buffering tactics, compressing tactics, prefix expanding, independent prefix to transform etc. This paper briefly analyzed the binary routing search algorithm based on prefix length and the routing search algorithm based on Trie. After then, it proposed an improved routing search algorithm and presented corresponding implementation schemes under IPv6. Combined the binary routing search algorithm based on prefix length and the routing search algorithm based on Trie, the improved algorithm supports MVRF dynamic to update, has higher search speed and better scalability of prefix length. Simulation results show that this algorithm can well satisfy the requirements of IPv6. Keywords: Binary Search; IPv6; Routing Search Algorithm; MVRF
采用 Trie 和二分查找的 IPv6 路由查找算法* 陈超 四川理工学院 网络管理中心,四川 自贡 643000 摘 要:在 IPv6 下由于地址长度增加,导致路由器负担加重,目前很多已有的路由查找算法扩展到 IPv6 后无法适应新的 需求。因此,路由查找算法要达到对 IPv6 很好的适应性,必须要在缓存策略、压缩策略、前缀扩展、独立前缀转化等各 个方面都具有很好的性能。本文首先简要分析了基于 Trie 的路由查找算法和基于前缀长度的二分路由查找算法的优缺 点,在此基础上提供了一个改进的路由查找算法并给出了其在 IPv6 下的实现方案。该改进算法把基于 Trie 的路由查找算 法和基于前缀长度的二分路由查找算法结合起来,从而使其具备路由转发表动态更新、查找速度快、对前缀长度扩展性 好等特点。仿真实验表明该算法能够较好地满足 IPv6 的要求。 关键词:二分查找;IPv6;路由查找算法;路由转发表;MVRF
引言 IPv4 作为网络的基础协议曾经发挥了巨大的作用,取得了令人瞩目的成功[1]。但随着 Internet 的迅速发 展,IPv4 的弊端和局限日益凸显,如地址空间短缺、安全问题、配置麻烦等,这些都大大限制了 Internet 的 飞速发展[2]。为了解决这些问题,尤其是解决地址空间不足的问题,IPv6 应运而生。由于新一代 IP 协议 IPv6 使用长度为 128 的地址,它给本来已经很复杂的最长匹配前缀查找带来了更大的困难 [3]。对于目前的 32 位计算机系统来说,访问一个 128 地址就需要进行 4 次读写操作,查找速度会大大降低。为此,目前很 多已有的路由查找算法应用到 IPv6 后不能很好地满足其要求[4]。在此背景下,研究适用于 IPv6 的路由查找 算法成为了当前的一个研究热点。本文首先简要分析了基于 Trie 的路由查找算法和基于前缀长度的二分路 *
基金资助:四川省科技厅支撑计划项目(2013GZ0030);人工智能四川省重点实验室开放基金项目(2011RYY06);四川理工学 院国家基金培育项目(2011PY05)。 - 147 http://www.sj-ce.org/