📄 etx_traffic.tcl
字号:
set sink_(34) [new Agent/TCPSink]# DOWNLINK: From GW $node_(3) to $node_(34) $ns_ attach-agent $node_(3) $tcp_(34) $ns_ attach-agent $node_(34) $sink_(34) $ns_ connect $tcp_(34) $sink_(34) set ftp_(34) [new Application/FTP] $ftp_(34) attach-agent $tcp_(34) $ns_ at 5.363125 "$ftp_(34) start" set tcp_(35) [new Agent/TCP] $tcp_(35) set class_ 2 set sink_(35) [new Agent/TCPSink]# DOWNLINK: From GW $node_(5) to $node_(35) $ns_ attach-agent $node_(5) $tcp_(35) $ns_ attach-agent $node_(35) $sink_(35) $ns_ connect $tcp_(35) $sink_(35) set ftp_(35) [new Application/FTP] $ftp_(35) attach-agent $tcp_(35) $ns_ at 5.200898 "$ftp_(35) start" set tcp_(36) [new Agent/TCP] $tcp_(36) set class_ 2 set sink_(36) [new Agent/TCPSink]# DOWNLINK: From GW $node_(47) to $node_(36) $ns_ attach-agent $node_(47) $tcp_(36) $ns_ attach-agent $node_(36) $sink_(36) $ns_ connect $tcp_(36) $sink_(36) set ftp_(36) [new Application/FTP] $ftp_(36) attach-agent $tcp_(36) $ns_ at 5.345925 "$ftp_(36) start" set tcp_(37) [new Agent/TCP] $tcp_(37) set class_ 2 set sink_(37) [new Agent/TCPSink]# DOWNLINK: From GW $node_(49) to $node_(37) $ns_ attach-agent $node_(49) $tcp_(37) $ns_ attach-agent $node_(37) $sink_(37) $ns_ connect $tcp_(37) $sink_(37) set ftp_(37) [new Application/FTP] $ftp_(37) attach-agent $tcp_(37) $ns_ at 5.867763 "$ftp_(37) start" set tcp_(38) [new Agent/TCP] $tcp_(38) set class_ 2 set sink_(38) [new Agent/TCPSink]# DOWNLINK: From GW $node_(49) to $node_(38) $ns_ attach-agent $node_(49) $tcp_(38) $ns_ attach-agent $node_(38) $sink_(38) $ns_ connect $tcp_(38) $sink_(38) set ftp_(38) [new Application/FTP] $ftp_(38) attach-agent $tcp_(38) $ns_ at 5.521284 "$ftp_(38) start" set tcp_(39) [new Agent/TCP] $tcp_(39) set class_ 2 set sink_(39) [new Agent/TCPSink]# DOWNLINK: From GW $node_(49) to $node_(39) $ns_ attach-agent $node_(49) $tcp_(39) $ns_ attach-agent $node_(39) $sink_(39) $ns_ connect $tcp_(39) $sink_(39) set ftp_(39) [new Application/FTP] $ftp_(39) attach-agent $tcp_(39) $ns_ at 5.227338 "$ftp_(39) start" set tcp_(40) [new Agent/TCP] $tcp_(40) set class_ 2 set sink_(40) [new Agent/TCPSink]# DOWNLINK: From GW $node_(31) to $node_(40) $ns_ attach-agent $node_(31) $tcp_(40) $ns_ attach-agent $node_(40) $sink_(40) $ns_ connect $tcp_(40) $sink_(40) set ftp_(40) [new Application/FTP] $ftp_(40) attach-agent $tcp_(40) $ns_ at 5.783986 "$ftp_(40) start" set tcp_(41) [new Agent/TCP] $tcp_(41) set class_ 2 set sink_(41) [new Agent/TCPSink]# DOWNLINK: From GW $node_(31) to $node_(41) $ns_ attach-agent $node_(31) $tcp_(41) $ns_ attach-agent $node_(41) $sink_(41) $ns_ connect $tcp_(41) $sink_(41) set ftp_(41) [new Application/FTP] $ftp_(41) attach-agent $tcp_(41) $ns_ at 5.765656 "$ftp_(41) start" set tcp_(42) [new Agent/TCP] $tcp_(42) set class_ 2 set sink_(42) [new Agent/TCPSink]# DOWNLINK: From GW $node_(31) to $node_(42) $ns_ attach-agent $node_(31) $tcp_(42) $ns_ attach-agent $node_(42) $sink_(42) $ns_ connect $tcp_(42) $sink_(42) set ftp_(42) [new Application/FTP] $ftp_(42) attach-agent $tcp_(42) $ns_ at 5.042475 "$ftp_(42) start" set tcp_(43) [new Agent/TCP] $tcp_(43) set class_ 2 set sink_(43) [new Agent/TCPSink]# DOWNLINK: From GW $node_(31) to $node_(43) $ns_ attach-agent $node_(31) $tcp_(43) $ns_ attach-agent $node_(43) $sink_(43) $ns_ connect $tcp_(43) $sink_(43) set ftp_(43) [new Application/FTP] $ftp_(43) attach-agent $tcp_(43) $ns_ at 5.697272 "$ftp_(43) start" set tcp_(44) [new Agent/TCP] $tcp_(44) set class_ 2 set sink_(44) [new Agent/TCPSink]# DOWNLINK: From GW $node_(31) to $node_(44) $ns_ attach-agent $node_(31) $tcp_(44) $ns_ attach-agent $node_(44) $sink_(44) $ns_ connect $tcp_(44) $sink_(44) set ftp_(44) [new Application/FTP] $ftp_(44) attach-agent $tcp_(44) $ns_ at 5.425227 "$ftp_(44) start" set tcp_(45) [new Agent/TCP] $tcp_(45) set class_ 2 set sink_(45) [new Agent/TCPSink]# DOWNLINK: From GW $node_(47) to $node_(45) $ns_ attach-agent $node_(47) $tcp_(45) $ns_ attach-agent $node_(45) $sink_(45) $ns_ connect $tcp_(45) $sink_(45) set ftp_(45) [new Application/FTP] $ftp_(45) attach-agent $tcp_(45) $ns_ at 5.497704 "$ftp_(45) start" set tcp_(46) [new Agent/TCP] $tcp_(46) set class_ 2 set sink_(46) [new Agent/TCPSink]# DOWNLINK: From GW $node_(47) to $node_(46) $ns_ attach-agent $node_(47) $tcp_(46) $ns_ attach-agent $node_(46) $sink_(46) $ns_ connect $tcp_(46) $sink_(46) set ftp_(46) [new Application/FTP] $ftp_(46) attach-agent $tcp_(46) $ns_ at 5.279604 "$ftp_(46) start" set tcp_(48) [new Agent/TCP] $tcp_(48) set class_ 2 set sink_(48) [new Agent/TCPSink]# DOWNLINK: From GW $node_(49) to $node_(48) $ns_ attach-agent $node_(49) $tcp_(48) $ns_ attach-agent $node_(48) $sink_(48) $ns_ connect $tcp_(48) $sink_(48) set ftp_(48) [new Application/FTP] $ftp_(48) attach-agent $tcp_(48) $ns_ at 5.039354 "$ftp_(48) start" set tcp_(50) [new Agent/TCP] $tcp_(50) set class_ 2 set sink_(50) [new Agent/TCPSink]# DOWNLINK: From GW $node_(31) to $node_(50) $ns_ attach-agent $node_(31) $tcp_(50) $ns_ attach-agent $node_(50) $sink_(50) $ns_ connect $tcp_(50) $sink_(50) set ftp_(50) [new Application/FTP] $ftp_(50) attach-agent $tcp_(50) $ns_ at 5.206990 "$ftp_(50) start" set tcp_(51) [new Agent/TCP] $tcp_(51) set class_ 2 set sink_(51) [new Agent/TCPSink]# DOWNLINK: From GW $node_(64) to $node_(51) $ns_ attach-agent $node_(64) $tcp_(51) $ns_ attach-agent $node_(51) $sink_(51) $ns_ connect $tcp_(51) $sink_(51) set ftp_(51) [new Application/FTP] $ftp_(51) attach-agent $tcp_(51) $ns_ at 5.047944 "$ftp_(51) start" set tcp_(52) [new Agent/TCP] $tcp_(52) set class_ 2 set sink_(52) [new Agent/TCPSink]# DOWNLINK: From GW $node_(64) to $node_(52) $ns_ attach-agent $node_(64) $tcp_(52) $ns_ attach-agent $node_(52) $sink_(52) $ns_ connect $tcp_(52) $sink_(52) set ftp_(52) [new Application/FTP] $ftp_(52) attach-agent $tcp_(52) $ns_ at 5.657974 "$ftp_(52) start" set tcp_(53) [new Agent/TCP] $tcp_(53) set class_ 2 set sink_(53) [new Agent/TCPSink]# DOWNLINK: From GW $node_(64) to $node_(53) $ns_ attach-agent $node_(64) $tcp_(53) $ns_ attach-agent $node_(53) $sink_(53) $ns_ connect $tcp_(53) $sink_(53) set ftp_(53) [new Application/FTP] $ftp_(53) attach-agent $tcp_(53) $ns_ at 5.979076 "$ftp_(53) start" set tcp_(54) [new Agent/TCP] $tcp_(54) set class_ 2 set sink_(54) [new Agent/TCPSink]# DOWNLINK: From GW $node_(64) to $node_(54) $ns_ attach-agent $node_(64) $tcp_(54) $ns_ attach-agent $node_(54) $sink_(54) $ns_ connect $tcp_(54) $sink_(54) set ftp_(54) [new Application/FTP] $ftp_(54) attach-agent $tcp_(54) $ns_ at 5.692395 "$ftp_(54) start" set tcp_(55) [new Agent/TCP] $tcp_(55) set class_ 2 set sink_(55) [new Agent/TCPSink]# DOWNLINK: From GW $node_(58) to $node_(55) $ns_ attach-agent $node_(58) $tcp_(55) $ns_ attach-agent $node_(55) $sink_(55) $ns_ connect $tcp_(55) $sink_(55) set ftp_(55) [new Application/FTP] $ftp_(55) attach-agent $tcp_(55) $ns_ at 5.088612 "$ftp_(55) start" set tcp_(56) [new Agent/TCP] $tcp_(56) set class_ 2 set sink_(56) [new Agent/TCPSink]# DOWNLINK: From GW $node_(47) to $node_(56) $ns_ attach-agent $node_(47) $tcp_(56) $ns_ attach-agent $node_(56) $sink_(56) $ns_ connect $tcp_(56) $sink_(56) set ftp_(56) [new Application/FTP] $ftp_(56) attach-agent $tcp_(56) $ns_ at 5.595722 "$ftp_(56) start" set tcp_(57) [new Agent/TCP] $tcp_(57) set class_ 2 set sink_(57) [new Agent/TCPSink]# DOWNLINK: From GW $node_(58) to $node_(57) $ns_ attach-agent $node_(58) $tcp_(57) $ns_ attach-agent $node_(57) $sink_(57) $ns_ connect $tcp_(57) $sink_(57) set ftp_(57) [new Application/FTP] $ftp_(57) attach-agent $tcp_(57) $ns_ at 5.030049 "$ftp_(57) start" set tcp_(59) [new Agent/TCP] $tcp_(59) set class_ 2 set sink_(59) [new Agent/TCPSink]# DOWNLINK: From GW $node_(58) to $node_(59) $ns_ attach-agent $node_(58) $tcp_(59) $ns_ attach-agent $node_(59) $sink_(59) $ns_ connect $tcp_(59) $sink_(59) set ftp_(59) [new Application/FTP] $ftp_(59) attach-agent $tcp_(59) $ns_ at 5.459702 "$ftp_(59) start" set tcp_(60) [new Agent/TCP] $tcp_(60) set class_ 2 set sink_(60) [new Agent/TCPSink]# DOWNLINK: From GW $node_(70) to $node_(60) $ns_ attach-agent $node_(70) $tcp_(60) $ns_ attach-agent $node_(60) $sink_(60) $ns_ connect $tcp_(60) $sink_(60) set ftp_(60) [new Application/FTP] $ftp_(60) attach-agent $tcp_(60) $ns_ at 5.924193 "$ftp_(60) start" set tcp_(61) [new Agent/TCP] $tcp_(61) set class_ 2 set sink_(61) [new Agent/TCPSink]# DOWNLINK: From GW $node_(70) to $node_(61) $ns_ attach-agent $node_(70) $tcp_(61) $ns_ attach-agent $node_(61) $sink_(61) $ns_ connect $tcp_(61) $sink_(61) set ftp_(61) [new Application/FTP] $ftp_(61) attach-agent $tcp_(61) $ns_ at 5.341945 "$ftp_(61) start" set tcp_(62) [new Agent/TCP] $tcp_(62) set class_ 2 set sink_(62) [new Agent/TCPSink]# DOWNLINK: From GW $node_(64) to $node_(62) $ns_ attach-agent $node_(64) $tcp_(62) $ns_ attach-agent $node_(62) $sink_(62) $ns_ connect $tcp_(62) $sink_(62) set ftp_(62) [new Application/FTP] $ftp_(62) attach-agent $tcp_(62) $ns_ at 5.886627 "$ftp_(62) start" set tcp_(63) [new Agent/TCP] $tcp_(63) set class_ 2 set sink_(63) [new Agent/TCPSink]# DOWNLINK: From GW $node_(64) to $node_(63) $ns_ attach-agent $node_(64) $tcp_(63) $ns_ attach-agent $node_(63) $sink_(63) $ns_ connect $tcp_(63) $sink_(63) set ftp_(63) [new Application/FTP] $ftp_(63) attach-agent $tcp_(63) $ns_ at 5.978300 "$ftp_(63) start" set tcp_(65) [new Agent/TCP] $tcp_(65) set class_ 2 set sink_(65) [new Agent/TCPSink]# DOWNLINK: From GW $node_(64) to $node_(65) $ns_ attach-agent $node_(64) $tcp_(65) $ns_ attach-agent $node_(65) $sink_(65) $ns_ connect $tcp_(65) $sink_(65) set ftp_(65) [new Application/FTP] $ftp_(65) attach-agent $tcp_(65) $ns_ at 5.393407 "$ftp_(65) start" set tcp_(66) [new Agent/TCP] $tcp_(66) set class_ 2 set sink_(66) [new Agent/TCPSink]# DOWNLINK: From GW $node_(64) to $node_(66) $ns_ attach-agent $node_(64) $tcp_(66) $ns_ attach-agent $node_(66) $sink_(66) $ns_ connect $tcp_(66) $sink_(66) set ftp_(66) [new Application/FTP] $ftp_(66) attach-agent $tcp_(66) $ns_ at 5.354561 "$ftp_(66) start" set tcp_(67) [new Agent/TCP] $tcp_(67) set class_ 2 set sink_(67) [new Agent/TCPSink]# DOWNLINK: From GW $node_(87) to $node_(67) $ns_ attach-agent $node_(87) $tcp_(67) $ns_ attach-agent $node_(67) $sink_(67) $ns_ connect $tcp_(67) $sink_(67) set ftp_(67) [new Application/FTP] $ftp_(67) attach-agent $tcp_(67) $ns_ at 5.006832 "$ftp_(67) start" set tcp_(68) [new Agent/TCP] $tcp_(68) set class_ 2 set sink_(68) [new Agent/TCPSink]# DOWNLINK: From GW $node_(87) to $node_(68) $ns_ attach-agent $node_(87) $tcp_(68) $ns_ attach-agent $node_(68) $sink_(68) $ns_ connect $tcp_(68) $sink_(68) set ftp_(68) [new Application/FTP] $ftp_(68) attach-agent $tcp_(68) $ns_ at 5.025657 "$ftp_(68) start" set tcp_(69) [new Agent/TCP] $tcp_(69) set class_ 2 set sink_(69) [new Agent/TCPSink]# DOWNLINK: From GW $node_(58) to $node_(69) $ns_ attach-agent $node_(58) $tcp_(69) $ns_ attach-agent $node_(69) $sink_(69)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -