曲靖师范学院学报 ›› 2019, Vol. 38 ›› Issue (3): 28-32.

• 计算机科学研究 • 上一篇    下一篇

基于NS-2平台的蚁群优化路由算法的实验仿真

李勇, 吴丽华   

  1. 曲靖师范学院 信息工程学院,云南 曲靖 655011
  • 收稿日期:2019-03-11 出版日期:2019-05-26
  • 作者简介:李勇,曲靖师范学院信息工程学院讲师,主要从事计算机网络、信息安全、云计算研究.

Experimental Simulation of the Ant Colony Optimization Routing Algorithm based on NS-2 platform

Li Yong,Wu Lihua   

  1. School of Information Engineering, Qujing Normal University, Qujing Yunnan 655011, China
  • Received:2019-03-11 Published:2019-05-26

摘要: 针对日益复杂的网络规模、已有的路由选择算法不能很好地为分组转发选择最佳路径问题,提出基于蚁群优化的路由算法(ACO-RA).首先,在NS-2平台上设计虚拟网络环境,随机初始化设置每条链路之间的通信带宽和距离,并以链路带宽作为蚁群搜索路径上的信息素.然后根据蚁群优化算法的路径选择机制动态地为分组转发寻找最佳路径.最后,采用otcl语言编程进行实验仿真,以网络分组转发时的寻径收敛时间、最佳路径长度为性能指标,对比分析了使用ACO-RA,D-V,SPF算法进行网络分组路径选择的优劣,证明了ACO-RA算法的优势.

关键词: 蚁群优化算法, 路由算法, 分组转发, D-V算法, SPF算法

Abstract: Aimed at increasingly complex network scales, existing routing algorithms do not select the best path for packet forwarding, ant colony optimization routing algorithm (ACO-RA) is proposed. First, virtual network environment is designed on NS-2 platform, and the communication bandwidth and distance between each link are randomly initialized, and the link bandwidth is taken as the pheromone on the ant colony search path. Then according to ant colony optimization algorithm's path selection mechanism, it dynamically finds the best path for packet forwarding. Finally, experimental simulation is performed by otcl programming, the convergence time and the optimal path length of the network packet forwarding are used as performance indicators. The advantages and disadvantages of ACO-RA, DV, and SPF algorithms for network packet path selection are compared and analyzed, proved the advantages of the ACO-RA algorithm.

Key words: ant colony optimization algorithm, route algorithm, packet forwarding, distance vector algorithm, short path first algorithm

中图分类号: