我正在尝试模拟 NS2 中的每种路由协议。我从 AODV 和 DSDV 开始,效果很好,但当我尝试模拟 DSR 时,出现了“核心转储”错误,而对于 OLSR 和 ZRP,我得到了这个错误:
(_o16 cmd line 1)
invoked from within
"_o16 cmd addr"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o16" line 2)
(SplitObject unknown line 2)
invoked from within
"_o16 addr"
("eval" body line 1)
invoked from within
"eval $node addr $args"
("default" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
(procedure "_o3" line 14)
(Simulator create-wireless-node line 14)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $opt(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0 ;# disable random motion
}"
(file "zrp.tcl" line 110)
有人能帮帮我吗?
答案1
AODV和DSR是ns2中的默认应用程序。
可以使用补丁将 ZRP 添加到 ns-2.35zrp-ns235.补丁... 构建示例,帖子#22这里以及 2015 年 9 月 8 日之后这里
OLSR 可以添加到 ZRP 修补的 ns-2.35 中umolsr_for-zrp-patched_ns235.补丁
有效的模拟示例:
- OLSR:umolsr-示例-05.2016.tar.gz
-
-
-