免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1794 | 回复: 0
打印 上一主题 下一主题

NO Ad-Hoc Routing Agent (NOAH) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-06 18:37 |只看该作者 |倒序浏览
NO Ad-Hoc Routing Agent (NOAH)NOAH is a wireless routing agent that (in contrast to DSDV, DSR, ...) only supports direct communication between wireless nodes or between base stations and mobile nodes in case Mobile IP is used. This allows to simulate scenarios where multi-hop wireless routing is undesired. NOAH does not send any routing related packets.
It has been updated to work with ns-2.26 - ns-2.30 and with non-Mobile IP scenarios. (For older versions of ns-2, take a look at
http://www.informatik.uni-mannheim.de/informatik/pi4/projects/MobileIP/ns-extension/
but this version does not contain the bugfixes for non-Mobile IP scenarios.)
Further update to allow static multi-hop routes. The routes can be set up using the routing command which takes as parameters the number of destinations and then as many tuples of destination and next hop address. The following example sets up static routing for a line of nodes:
# setup static routing for line of nodes
for {set i 0} {$i  $i} {
set hop [expr $i + 1]
} else {
set hop $i
}
set cmd "$cmd $to $hop"
}
eval $cmd
}
Step-by-step installation instructions for ns-2.26 (and ns-2.30)
filechanges -->
Makefile.in add noah/noah.o \ to OBJ_CC and tcl/mobility/noah.tcl \ to NS_TCL_LIB
noah/noah.{h,cc} add
noah.h
and
noah.cc
to a new subdirectory noah/
tcl/mobility/noah.tcl add
noah.tcl
to tcl/mobility/
tcl/lib/ns-lib.tcl
line 191 (for v2.29 line 197): add source ../mobility/noah.tcl
line 603ff (for v2.29 line 649ff): add NOAH {
set ragent [$self create-noah-agent $node]
}
line 768ff (for v2.29 line 839ff): add
Simulator instproc create-noah-agent { node } {
# Create a noah routing agent for this node
set ragent [new Agent/NOAH]
## setup address (supports hier-addr) for noah agent
## and mobilenode
set addr [$node node-addr]
$ragent addr $addr
$ragent node $node
if [Simulator set mobile_ip_] {
$ragent port-dmux [$node demux]
}
$node addr $addr
$node set ragent_ $ragent
return $ragent
}
转自
http://icapeople.epfl.ch/widmer/uwb/ns-2/noah/



本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/82448/showart_1891510.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP