#Call the finish procedure after 5 seconds of simulation time
$ns at 5.0 "finish"
#Print CBR packet size and interval
puts "CBR packet size = [$cbr set packet_size_]"
puts "CBR interval = [$cbr set interval_]"
#Run the simulation
$ns run
我正在尝试从此链接执行示例1。但由于某些原因,在终端中输入ns sample.tcl后,只显示'puts'部分并且没有nam输出。
rpath
答案 0 :(得分:0)
请从这里开始了解基础知识(Marc Greiss)http://www.isi.edu/nsnam/ns/tutorial/nsscript1.html
示例:" examples_1-2-3-4.tar.gz" https://drive.google.com/file/d/0B7S255p3kFXNakF3X0FHby1aYlU/view?usp=sharing