Performance Evaluation of DSDV, AODV, and DSR

本文通过NS2模拟环境对比了DSDV、AODV及DSR三种无线自组网路由协议的性能。使用TCL脚本配置实验参数,并生成交通与场景文件进行仿真。通过AWK脚本解析结果,分析了数据包传输比率等关键指标。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

In this report, I just show the simulation scripts to compare theperformance of DSDV, AODV, and DSR. More information about these adhoc routing protocols can be found on the Internet orbooks.

 这段代码直接拷贝会出现如下问题:

num_nodes is set 50
invalid command name "-llType"
    while executing
"-llType $val(ll) /"
    (file "adhoc.tcl" line 48)

貌似是空格用了tab键什么的,所以代码直接到http://140.116.72.80/~smallko/ns2/adhoc_routing.htm

上面去复制比较保险。


(TCL script --- adhoc.tcl)

Performance metric: Packet Delivery fraction (The ratio of the data packets delivered to the destinations to those generated by the sources)

(AWK paring program --- getRatio.awk )

 

Before running simulation, we have to use the tools to generate the traffic and scenario patterns.

 

1.      Traffic pattern (change the path to ~ns/indep-utils/cmu-scen-gen )

In this example, traffic models were generated for 50 nodes with CBR traffic sources, with maximum connections of 10 at a rate of 8kbps.

(-rate 2.0: in one second, 2 packets are generated. The packet size is 512 byte. Therefore the rate is 2*512*8=8kbps)

 

2. Scenario pattern (change the path to ~ns/indep-utils/cmu-scen-gen )

In this example, mobility models are created for the simulations using 50 nodes, with pause time of 0 seconds, maximum speed of 20m/s, topology boundary of 500x500 and simulation time of 100 secs .

 

After creating the traffic and scenario pattern files, copy them to the place where you put the adhoc.tcl .

 

Start Running Simulation

1. DSDV

Parse the result

1.      AODV

2.      DSR



 


The explanation for the results can be found at reference 1.

 

Reference

1.      http://www.cs.utk.edu/~gupta/Adhoc.doc

2.     http://www.ptpress.com.cn/books/Book_Information.asp?BID=11867

 

 

来源:http://140.116.72.80/~smallko/ns2/adhoc_routing.htm


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值