【问题标题】:Error while executing tcl file in ns2在 ns2 中执行 tcl 文件时出错
【发布时间】:2015-04-24 10:19:20
【问题描述】:

我的 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)

【问题讨论】:

    标签: ns2


    【解决方案1】:

    “xgraph_ns2-files-tcl_21Apr2015.tar.gz”中有一个blackholeaodv / Xgraph的例子→

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

    即将“黑洞”添加到现有的 AODV 文件比让现有的“黑洞模拟”为 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/


    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-19
      • 1970-01-01
      • 1970-01-01
      • 2017-06-06
      • 2016-09-15
      • 1970-01-01
      相关资源
      最近更新 更多