大家好,
我想於NS2上去動態改變設定像是ARQ的啟用或是傳輸半徑,
但是我有參考柯老師在802.11去動態調整bandwidth的方法,
set ns [new Simulator]
set n0 [$ns node]
set n1 [$ns node]
$ns simplex-link $n0 $n1 1Mb 10ms DropTail
$ns simplex-link $n1 $n0 10Mb 10ms DropTail
set tcp [new Agent/TCP]
$ns attach-agent $n0 $tcp
set tcpsink1 [new Agent/TCPSink/mTcpSink]
$tcpsink1 set_filename tcp_sink
$ns attach-agent $n1 $tcpsink1
$ns connect $tcp $tcpsink1
set ftp [new Application/FTP]
$ftp attach-agent $tcp
$ftp set type_ FTP
$ns at 0.0 "$ftp start"
$ns at 10.0 "$ns bandwidth $n0 $n1 5Mb"
$ns at 15.0 "$ftp stop"
$ns at 20.0 "$tcpsink1 closefile"
$ns at 20.1 "puts \"NS EXITING...\" ; $ns halt"
$ns run
但是,用在上述我的問題
$ns at 0.0 "[$wl_node set mac_(0)] setflow UL 10000 BE 275 2 1 0.05 1024 0 0
0 0 0 0 0 0 0 0 0" ;
$ns at 30.0 "[$wl_node set mac_(0)] setflow UL 10000 BE 275 2 0 0.05 1024 0 0
0 0 0 0 0 0 0 0 0" ;
都只會認定第一個參數設定
不知道版上的各位有沒有曾經處理過這個問題的經驗可以分享給小弟
感激不盡
BTW, 不知道有沒有人有看過一個叫做WINSE: Wimax NS-2 Extension的模組