ns2里有*.ns文件吗?这个文件可以转为.tcl文件吗?下边的这个文件是什么文件?多谢
#GeneratedbyNetlabClientsetns[newSimulator]sourcetb_compat.tcl#Nodessetnode0[$nsnode]...
# Generated by NetlabClient
set ns [new Simulator]
source tb_compat.tcl
# Nodes
set node0 [$ns node]
set node1 [$ns node]
set node2 [$ns node]
set node3 [$ns node]
# Links
set link0 [$ns duplex-link $node0 $node1 100000.0kb 0.0ms DropTail]
set link1 [$ns duplex-link $node2 $node3 100000.0kb 0.0ms DropTail]
set link2 [$ns duplex-link $node0 $node2 100000.0kb 0.0ms DropTail]
$ns rtproto Static
$ns run
# NetlabClient generated file ends here.
# Finished at: 12-8-14 下午3:12
上边有一句“source tb_compat.tcl”,我把tb_compat.tcl文件和它放在一起,运行的时候会出错,不知道为什么?
warning:no class variable LanRouter::debug_
see tcl-object.tcl in tclcl for info about this warning. 展开
set ns [new Simulator]
source tb_compat.tcl
# Nodes
set node0 [$ns node]
set node1 [$ns node]
set node2 [$ns node]
set node3 [$ns node]
# Links
set link0 [$ns duplex-link $node0 $node1 100000.0kb 0.0ms DropTail]
set link1 [$ns duplex-link $node2 $node3 100000.0kb 0.0ms DropTail]
set link2 [$ns duplex-link $node0 $node2 100000.0kb 0.0ms DropTail]
$ns rtproto Static
$ns run
# NetlabClient generated file ends here.
# Finished at: 12-8-14 下午3:12
上边有一句“source tb_compat.tcl”,我把tb_compat.tcl文件和它放在一起,运行的时候会出错,不知道为什么?
warning:no class variable LanRouter::debug_
see tcl-object.tcl in tclcl for info about this warning. 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询