我的Blackhole-AODV程序之前运行顺利,没有错误,我记录了相当不。结果来自模拟。但是在安装xgraph之后(我认为在xgraph中绘制结果会很好而不是通过手动操作)我的程序停止工作。它显示了一些长错误,我不知道如何解决它。请帮助我试着在网上找到很多解决方案(到处都有同样的问题,但没有解决方案!!!)。错误如下: -
num_nodes is set 50
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
(_o872 cmd line 1)
invoked from within
"_o872 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 "_o872" line 2)
(SplitObject unknown line 2)
invoked from within
"_o872 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 $val(nnaodv) } {$i<$val(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 1;
$node_($i) color red
$ns_ at 0.0 "$nod..."
(file "atk20.tcl" line 69)
答案 0 :(得分:0)
&#34; xgraph_ns2-files-tcl_21Apr2015.tar.gz&#34;中有一个blackholeaodv / Xgraph示例。 →
→https://drive.google.com/file/d/0B7S255p3kFXNa2t3OUJaV2lydUk/view?usp=sharing
即。它更容易添加&#39; Blackhole&#39;现有的AODV文件,而不是现有的&#34; Blackholeaodv模拟&#34;生成Xgraph的输出文件。
Blackholeaodv INFO ......
。 https://groups.google.com/forum/?fromgroups#!searchin/ns-users/blackhole|sort:date