2015-04-24 47 views
0

我的Blackhole-AODV程序在以前運行平穩,沒有錯誤,並且我記錄了很多次。來自模擬的結果。但安裝xgraph後(我認爲在xgraph中繪製結果會很好,而不是手動),我的程序停止工作。它顯示了一些長時間的錯誤,我不知道如何解決它。請幫我試圖找到淨許多解決方案(有同樣的問題,但到處都是無解!)下面給出的錯誤: -在ns2中執行tcl文件時出錯

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

有一個blackholeaodv/Xgraph例子在 「xgraph_ns2 - 文件 - tcl_21Apr2015.tar.gz」 →

https://drive.google.com/file/d/0B7S255p3kFXNa2t3OUJaV2lydUk/view?usp=sharing

即向現有的AODV文件添加'Blackhole'更容易,而不是使現有的「Blackholeaodv模擬」爲Xgraph生成輸出文件。


Blackholeaodv信息...

http://network-simulator-ns-2.7690.n7.nabble.com/template/NamlServlet.jtp?macro=search_page&node=2&query=blackhole&days=0&sort=date

https://groups.google.com/forum/?fromgroups#!searchin/ns-users/blackhole|sort:date

http://www.linuxquestions.org/questions/tags/blackhole/