计算机与现代化 ›› 2012, Vol. 1 ›› Issue (9): 83-86.doi: 10.3969/j.issn.1006-2475.2012.09.022

• 网络与通信 • 上一篇    下一篇

基于NS2的Ad Hoc网络TCP路由仿真及性能比较

张右芳,周力   

  1. 南昌航空大学信息工程学院,江西南昌330063
  • 收稿日期:2012-05-14 修回日期:1900-01-01 出版日期:2012-09-21 发布日期:2012-09-21

Simulation and Performance Comparison of TCP Routing Protocol in Ad Hoc Based on NS2

ZHANG You-fang, ZHOU Li   

  1. School of Information Engineering, Nanchang Hangkong University, Nanchang 330063, China
  • Received:2012-05-14 Revised:1900-01-01 Online:2012-09-21 Published:2012-09-21

摘要: Ad Hoc网络由于其无中心、自组织的特点目前已得到广泛关注。本文首先介绍Ad Hoc网络中3种典型路由协议AODV、DSDV、DSR的基本原理,然后采用网络仿真软件NS2对3种协议进行模拟,其中,仿真场景通过分别改变网络中节点的数目、节点的停留时间而分为两类。本文流量模型选用的是TCP代理中的FTP应用,而传统多采用UDP代理中的应用。最后,在给定的场景下,对网络端到端时延、路由开销、分组投递率3种指标进行仿真,通过性能评估后给出比较结论。

关键词: 移动自组网, 路由协议, NS2, 传输控制协议, 性能分析

Abstract: In recent years, the Ad Hoc network has been paid extensive attention, due to its characteristics of uncenter and self-organization. First this paper introduces three typical routing protocols AODV, DSDV, DSR, and the principles of them; then, adopts the NS2 simulation platform to simulate the model of three typical routing protocols. The traffic model is FTP application of TCP agent, while the tradition usually uses UDP agent. Two types of scene are set by changing the number of nodes and the paused time of the node in the network respectively. Finally, by comparing the simulating result of end-to-end delay, routing overhead, packet delivery ratio performance are simulated, and the comparison conclusion is provided.

Key words: Ad Hoc, route protocol, NS2, TCP, performance analysi