set ns [new Simulator]
#open nam file
set nf [open out.nam w]
$ns namtrace-all $nf
#set variables of topology
set lanNodes 5
set link("bandwidth") 5mb
set link("delay") 2ms
set link("queue") D
我在Ubuntu上长期使用ns2和nam。现在我必须应用补丁(OSPF)。我一直在寻找如何在Linux的应用修补程序(如我在它一种新的)和所有我得到的是: 1) $ tar xvf ns-allinone-2.35.tar.gz
2) $ cd ns-allinone-2.35/
3) $ ln -s ns-2.35/ ns-2.34
... Then the patch will w
这是我的代码为SFQ.tcl。当我在大学计算机上执行时,此代码运行完美,当我试图在计算机上运行它时,它给了我一些错误。如果任何人都可以告诉我错误在哪里。其它的在安装ns2。由于当我键入纳秒它显示我%但是当我尝试运行的程序把它给错误 #Simulation Time
set val(stop) 60.0; #Creating New Simulator set ns [new Simulator]
我使用指令将一些恶意节点添加到我的场景中恶意节点在AODV中工作。 现在,通过运行该方案我有这样的错误: [email protected] ~/Desktop/ns-allinone-2.35/ns-2.35/tcl/ex $ ns smm.tcl
num_nodes is set 40
INITIALIZE THE LIST xListHead
ns: _o61 malicious :
在NS-2我得到这个错误,甚至我重新安装万亩NS-2 ns: _o5136 unknown-flow 44 127 1061001022:
(_o5136 cmd line 1)
invoked from within
"_o5136 cmd unknown-flow 44 127 1061001022"
invoked from within
"catc