?? ex1-traffic
字號:
##################################################################### setup UDP connectionsset udp1 [new Agent/UDP]$udp1 set fid_ 2222set lm [new Agent/LossMonitor]$ns_ attach-agent $node_(0) $udp1$ns_ attach-agent $node_(1) $lm$ns_ connect $udp1 $lm# Mandatory$node_(0) 2222 ftp rate_ $opt(rate)set cbr1 [new Application/Traffic/CBR]$cbr1 set rate_ $opt(rate)$cbr1 attach-agent $udp1$ns_ color 2222 blue$ns_ at $opt(start) "$cbr1 start"#$ns_ at 1.5 "$ns_ detach-agent $node_(0) $udp1"
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -