?? tcp-cl-30-12
字號:
set opt(conns) 12## 26 connecting to 30 at time 303#set tcp_(0) [new Agent/TCP]set sink_(0) [new Agent/TCPSink] $tcp_(0) set fid_ 0$sink_(0) set fid_ 0$ns_ attach-agent $node_(26) $tcp_(0)$ns_ attach-agent $node_(30) $sink_(0)$ns_ connect $tcp_(0) $sink_(0)$tcp_(0) set window_ 32$tcp_(0) set packetSize_ 1400set ftp_(0) [$tcp_(0) attach-source FTP]$ns_ at 303 "$ftp_(0) start"set stime_(0) 303## 6 connecting to 17 at time 317#set tcp_(1) [new Agent/TCP]set sink_(1) [new Agent/TCPSink] $tcp_(1) set fid_ 1$sink_(1) set fid_ 1$ns_ attach-agent $node_(6) $tcp_(1)$ns_ attach-agent $node_(17) $sink_(1)$ns_ connect $tcp_(1) $sink_(1)$tcp_(1) set window_ 32$tcp_(1) set packetSize_ 1400set ftp_(1) [$tcp_(1) attach-source FTP]$ns_ at 317 "$ftp_(1) start"set stime_(1) 317## 7 connecting to 9 at time 310#set tcp_(2) [new Agent/TCP]set sink_(2) [new Agent/TCPSink] $tcp_(2) set fid_ 2$sink_(2) set fid_ 2$ns_ attach-agent $node_(7) $tcp_(2)$ns_ attach-agent $node_(9) $sink_(2)$ns_ connect $tcp_(2) $sink_(2)$tcp_(2) set window_ 32$tcp_(2) set packetSize_ 1400set ftp_(2) [$tcp_(2) attach-source FTP]$ns_ at 310 "$ftp_(2) start"set stime_(2) 310## 14 connecting to 13 at time 316#set tcp_(3) [new Agent/TCP]set sink_(3) [new Agent/TCPSink] $tcp_(3) set fid_ 3$sink_(3) set fid_ 3$ns_ attach-agent $node_(14) $tcp_(3)$ns_ attach-agent $node_(13) $sink_(3)$ns_ connect $tcp_(3) $sink_(3)$tcp_(3) set window_ 32$tcp_(3) set packetSize_ 1400set ftp_(3) [$tcp_(3) attach-source FTP]$ns_ at 316 "$ftp_(3) start"set stime_(3) 316## 19 connecting to 29 at time 325#set tcp_(4) [new Agent/TCP]set sink_(4) [new Agent/TCPSink] $tcp_(4) set fid_ 4$sink_(4) set fid_ 4$ns_ attach-agent $node_(19) $tcp_(4)$ns_ attach-agent $node_(29) $sink_(4)$ns_ connect $tcp_(4) $sink_(4)$tcp_(4) set window_ 32$tcp_(4) set packetSize_ 1400set ftp_(4) [$tcp_(4) attach-source FTP]$ns_ at 325 "$ftp_(4) start"set stime_(4) 325## 8 connecting to 11 at time 304#set tcp_(5) [new Agent/TCP]set sink_(5) [new Agent/TCPSink] $tcp_(5) set fid_ 5$sink_(5) set fid_ 5$ns_ attach-agent $node_(8) $tcp_(5)$ns_ attach-agent $node_(11) $sink_(5)$ns_ connect $tcp_(5) $sink_(5)$tcp_(5) set window_ 32$tcp_(5) set packetSize_ 1400set ftp_(5) [$tcp_(5) attach-source FTP]$ns_ at 304 "$ftp_(5) start"set stime_(5) 304## 20 connecting to 12 at time 330#set tcp_(6) [new Agent/TCP]set sink_(6) [new Agent/TCPSink] $tcp_(6) set fid_ 6$sink_(6) set fid_ 6$ns_ attach-agent $node_(20) $tcp_(6)$ns_ attach-agent $node_(12) $sink_(6)$ns_ connect $tcp_(6) $sink_(6)$tcp_(6) set window_ 32$tcp_(6) set packetSize_ 1400set ftp_(6) [$tcp_(6) attach-source FTP]$ns_ at 330 "$ftp_(6) start"set stime_(6) 330## 21 connecting to 23 at time 319#set tcp_(7) [new Agent/TCP]set sink_(7) [new Agent/TCPSink] $tcp_(7) set fid_ 7$sink_(7) set fid_ 7$ns_ attach-agent $node_(21) $tcp_(7)$ns_ attach-agent $node_(23) $sink_(7)$ns_ connect $tcp_(7) $sink_(7)$tcp_(7) set window_ 32$tcp_(7) set packetSize_ 1400set ftp_(7) [$tcp_(7) attach-source FTP]$ns_ at 319 "$ftp_(7) start"set stime_(7) 319## 3 connecting to 22 at time 329#set tcp_(8) [new Agent/TCP]set sink_(8) [new Agent/TCPSink] $tcp_(8) set fid_ 8$sink_(8) set fid_ 8$ns_ attach-agent $node_(3) $tcp_(8)$ns_ attach-agent $node_(22) $sink_(8)$ns_ connect $tcp_(8) $sink_(8)$tcp_(8) set window_ 32$tcp_(8) set packetSize_ 1400set ftp_(8) [$tcp_(8) attach-source FTP]$ns_ at 329 "$ftp_(8) start"set stime_(8) 329## 0 connecting to 4 at time 324#set tcp_(9) [new Agent/TCP]set sink_(9) [new Agent/TCPSink] $tcp_(9) set fid_ 9$sink_(9) set fid_ 9$ns_ attach-agent $node_(0) $tcp_(9)$ns_ attach-agent $node_(4) $sink_(9)$ns_ connect $tcp_(9) $sink_(9)$tcp_(9) set window_ 32$tcp_(9) set packetSize_ 1400set ftp_(9) [$tcp_(9) attach-source FTP]$ns_ at 324 "$ftp_(9) start"set stime_(9) 324## 10 connecting to 25 at time 340#set tcp_(10) [new Agent/TCP]set sink_(10) [new Agent/TCPSink] $tcp_(10) set fid_ 10$sink_(10) set fid_ 10$ns_ attach-agent $node_(10) $tcp_(10)$ns_ attach-agent $node_(25) $sink_(10)$ns_ connect $tcp_(10) $sink_(10)$tcp_(10) set window_ 32$tcp_(10) set packetSize_ 1400set ftp_(10) [$tcp_(10) attach-source FTP]$ns_ at 340 "$ftp_(10) start"set stime_(10) 340## 5 connecting to 16 at time 321#set tcp_(11) [new Agent/TCP]set sink_(11) [new Agent/TCPSink] $tcp_(11) set fid_ 11$sink_(11) set fid_ 11$ns_ attach-agent $node_(5) $tcp_(11)$ns_ attach-agent $node_(16) $sink_(11)$ns_ connect $tcp_(11) $sink_(11)$tcp_(11) set window_ 32$tcp_(11) set packetSize_ 1400set ftp_(11) [$tcp_(11) attach-source FTP]$ns_ at 321 "$ftp_(11) start"set stime_(11) 321
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -