📄 cbr-50n-30c-1p
字号:
# 16 connecting to 17 at time 3.3867447163847948#set udp_(30) [new Agent/UDP]$ns_ attach-agent $node_(16) $udp_(30)set null_(30) [new Agent/Null]$ns_ attach-agent $node_(17) $null_(30)set cbr_(30) [new Application/Traffic/CBR]$cbr_(30) set packetSize_ 1024$cbr_(30) set interval_ 2.0$cbr_(30) set random_ 1$cbr_(30) set maxpkts_ 5$cbr_(30) attach-agent $udp_(30)$ns_ connect $udp_(30) $null_(30)$ns_ at 3.3867447163847948 "$cbr_(30) start"## 16 connecting to 17 at time 8.3867447163847952#set udp_(31) [new Agent/UDP]$ns_ attach-agent $node_(16) $udp_(31)set null_(31) [new Agent/Null]$ns_ attach-agent $node_(17) $null_(31)set cbr_(31) [new Application/Traffic/CBR]$cbr_(31) set packetSize_ 1024$cbr_(31) set interval_ 1.0$cbr_(31) set random_ 1$cbr_(31) set maxpkts_ 10000$cbr_(31) attach-agent $udp_(31)$ns_ connect $udp_(31) $null_(31)$ns_ at 8.3867447163847952 "$cbr_(31) start"## 16 connecting to 18 at time 3.8111594639770496#set udp_(32) [new Agent/UDP]$ns_ attach-agent $node_(16) $udp_(32)set null_(32) [new Agent/Null]$ns_ attach-agent $node_(18) $null_(32)set cbr_(32) [new Application/Traffic/CBR]$cbr_(32) set packetSize_ 1024$cbr_(32) set interval_ 2.0$cbr_(32) set random_ 1$cbr_(32) set maxpkts_ 5$cbr_(32) attach-agent $udp_(32)$ns_ connect $udp_(32) $null_(32)$ns_ at 3.8111594639770496 "$cbr_(32) start"## 16 connecting to 18 at time 8.8111594639770487#set udp_(33) [new Agent/UDP]$ns_ attach-agent $node_(16) $udp_(33)set null_(33) [new Agent/Null]$ns_ attach-agent $node_(18) $null_(33)set cbr_(33) [new Application/Traffic/CBR]$cbr_(33) set packetSize_ 1024$cbr_(33) set interval_ 1.0$cbr_(33) set random_ 1$cbr_(33) set maxpkts_ 10000$cbr_(33) attach-agent $udp_(33)$ns_ connect $udp_(33) $null_(33)$ns_ at 8.8111594639770487 "$cbr_(33) start"## 17 connecting to 18 at time 2.027595386387592#set udp_(34) [new Agent/UDP]$ns_ attach-agent $node_(17) $udp_(34)set null_(34) [new Agent/Null]$ns_ attach-agent $node_(18) $null_(34)set cbr_(34) [new Application/Traffic/CBR]$cbr_(34) set packetSize_ 1024$cbr_(34) set interval_ 2.0$cbr_(34) set random_ 1$cbr_(34) set maxpkts_ 5$cbr_(34) attach-agent $udp_(34)$ns_ connect $udp_(34) $null_(34)$ns_ at 2.027595386387592 "$cbr_(34) start"## 17 connecting to 18 at time 7.027595386387592#set udp_(35) [new Agent/UDP]$ns_ attach-agent $node_(17) $udp_(35)set null_(35) [new Agent/Null]$ns_ attach-agent $node_(18) $null_(35)set cbr_(35) [new Application/Traffic/CBR]$cbr_(35) set packetSize_ 1024$cbr_(35) set interval_ 1.0$cbr_(35) set random_ 1$cbr_(35) set maxpkts_ 10000$cbr_(35) attach-agent $udp_(35)$ns_ connect $udp_(35) $null_(35)$ns_ at 7.027595386387592 "$cbr_(35) start"## 17 connecting to 19 at time 0.54599235791060718#set udp_(36) [new Agent/UDP]$ns_ attach-agent $node_(17) $udp_(36)set null_(36) [new Agent/Null]$ns_ attach-agent $node_(19) $null_(36)set cbr_(36) [new Application/Traffic/CBR]$cbr_(36) set packetSize_ 1024$cbr_(36) set interval_ 2.0$cbr_(36) set random_ 1$cbr_(36) set maxpkts_ 5$cbr_(36) attach-agent $udp_(36)$ns_ connect $udp_(36) $null_(36)$ns_ at 0.54599235791060718 "$cbr_(36) start"## 17 connecting to 19 at time 5.545992357910607#set udp_(37) [new Agent/UDP]$ns_ attach-agent $node_(17) $udp_(37)set null_(37) [new Agent/Null]$ns_ attach-agent $node_(19) $null_(37)set cbr_(37) [new Application/Traffic/CBR]$cbr_(37) set packetSize_ 1024$cbr_(37) set interval_ 1.0$cbr_(37) set random_ 1$cbr_(37) set maxpkts_ 10000$cbr_(37) attach-agent $udp_(37)$ns_ connect $udp_(37) $null_(37)$ns_ at 5.545992357910607 "$cbr_(37) start"## 20 connecting to 21 at time 4.7313247666374432#set udp_(38) [new Agent/UDP]$ns_ attach-agent $node_(20) $udp_(38)set null_(38) [new Agent/Null]$ns_ attach-agent $node_(21) $null_(38)set cbr_(38) [new Application/Traffic/CBR]$cbr_(38) set packetSize_ 1024$cbr_(38) set interval_ 2.0$cbr_(38) set random_ 1$cbr_(38) set maxpkts_ 5$cbr_(38) attach-agent $udp_(38)$ns_ connect $udp_(38) $null_(38)$ns_ at 4.7313247666374432 "$cbr_(38) start"## 20 connecting to 21 at time 9.7313247666374423#set udp_(39) [new Agent/UDP]$ns_ attach-agent $node_(20) $udp_(39)set null_(39) [new Agent/Null]$ns_ attach-agent $node_(21) $null_(39)set cbr_(39) [new Application/Traffic/CBR]$cbr_(39) set packetSize_ 1024$cbr_(39) set interval_ 1.0$cbr_(39) set random_ 1$cbr_(39) set maxpkts_ 10000$cbr_(39) attach-agent $udp_(39)$ns_ connect $udp_(39) $null_(39)$ns_ at 9.7313247666374423 "$cbr_(39) start"## 20 connecting to 22 at time 4.4567391087565289#set udp_(40) [new Agent/UDP]$ns_ attach-agent $node_(20) $udp_(40)set null_(40) [new Agent/Null]$ns_ attach-agent $node_(22) $null_(40)set cbr_(40) [new Application/Traffic/CBR]$cbr_(40) set packetSize_ 1024$cbr_(40) set interval_ 2.0$cbr_(40) set random_ 1$cbr_(40) set maxpkts_ 5$cbr_(40) attach-agent $udp_(40)$ns_ connect $udp_(40) $null_(40)$ns_ at 4.4567391087565289 "$cbr_(40) start"## 20 connecting to 22 at time 9.4567391087565298#set udp_(41) [new Agent/UDP]$ns_ attach-agent $node_(20) $udp_(41)set null_(41) [new Agent/Null]$ns_ attach-agent $node_(22) $null_(41)set cbr_(41) [new Application/Traffic/CBR]$cbr_(41) set packetSize_ 1024$cbr_(41) set interval_ 1.0$cbr_(41) set random_ 1$cbr_(41) set maxpkts_ 10000$cbr_(41) attach-agent $udp_(41)$ns_ connect $udp_(41) $null_(41)$ns_ at 9.4567391087565298 "$cbr_(41) start"## 24 connecting to 25 at time 1.6783137906707422#set udp_(42) [new Agent/UDP]$ns_ attach-agent $node_(24) $udp_(42)set null_(42) [new Agent/Null]$ns_ attach-agent $node_(25) $null_(42)set cbr_(42) [new Application/Traffic/CBR]$cbr_(42) set packetSize_ 1024$cbr_(42) set interval_ 2.0$cbr_(42) set random_ 1$cbr_(42) set maxpkts_ 5$cbr_(42) attach-agent $udp_(42)$ns_ connect $udp_(42) $null_(42)$ns_ at 1.6783137906707422 "$cbr_(42) start"## 24 connecting to 25 at time 6.6783137906707424#set udp_(43) [new Agent/UDP]$ns_ attach-agent $node_(24) $udp_(43)set null_(43) [new Agent/Null]$ns_ attach-agent $node_(25) $null_(43)set cbr_(43) [new Application/Traffic/CBR]$cbr_(43) set packetSize_ 1024$cbr_(43) set interval_ 1.0$cbr_(43) set random_ 1$cbr_(43) set maxpkts_ 10000$cbr_(43) attach-agent $udp_(43)$ns_ connect $udp_(43) $null_(43)$ns_ at 6.6783137906707424 "$cbr_(43) start"## 26 connecting to 27 at time 1.2849686952703487#set udp_(44) [new Agent/UDP]$ns_ attach-agent $node_(26) $udp_(44)set null_(44) [new Agent/Null]$ns_ attach-agent $node_(27) $null_(44)set cbr_(44) [new Application/Traffic/CBR]$cbr_(44) set packetSize_ 1024$cbr_(44) set interval_ 2.0$cbr_(44) set random_ 1$cbr_(44) set maxpkts_ 5$cbr_(44) attach-agent $udp_(44)$ns_ connect $udp_(44) $null_(44)$ns_ at 1.2849686952703487 "$cbr_(44) start"## 26 connecting to 27 at time 6.284968695270349#set udp_(45) [new Agent/UDP]$ns_ attach-agent $node_(26) $udp_(45)set null_(45) [new Agent/Null]$ns_ attach-agent $node_(27) $null_(45)set cbr_(45) [new Application/Traffic/CBR]$cbr_(45) set packetSize_ 1024$cbr_(45) set interval_ 1.0$cbr_(45) set random_ 1$cbr_(45) set maxpkts_ 10000$cbr_(45) attach-agent $udp_(45)$ns_ connect $udp_(45) $null_(45)$ns_ at 6.284968695270349 "$cbr_(45) start"## 27 connecting to 28 at time 2.7241098357942466#set udp_(46) [new Agent/UDP]$ns_ attach-agent $node_(27) $udp_(46)set null_(46) [new Agent/Null]$ns_ attach-agent $node_(28) $null_(46)set cbr_(46) [new Application/Traffic/CBR]$cbr_(46) set packetSize_ 1024$cbr_(46) set interval_ 2.0$cbr_(46) set random_ 1$cbr_(46) set maxpkts_ 5$cbr_(46) attach-agent $udp_(46)$ns_ connect $udp_(46) $null_(46)$ns_ at 2.7241098357942466 "$cbr_(46) start"## 27 connecting to 28 at time 7.7241098357942466#set udp_(47) [new Agent/UDP]$ns_ attach-agent $node_(27) $udp_(47)set null_(47) [new Agent/Null]$ns_ attach-agent $node_(28) $null_(47)set cbr_(47) [new Application/Traffic/CBR]$cbr_(47) set packetSize_ 1024$cbr_(47) set interval_ 1.0$cbr_(47) set random_ 1$cbr_(47) set maxpkts_ 10000$cbr_(47) attach-agent $udp_(47)$ns_ connect $udp_(47) $null_(47)$ns_ at 7.7241098357942466 "$cbr_(47) start"## 28 connecting to 29 at time 1.3091207348318401#set udp_(48) [new Agent/UDP]$ns_ attach-agent $node_(28) $udp_(48)set null_(48) [new Agent/Null]$ns_ attach-agent $node_(29) $null_(48)set cbr_(48) [new Application/Traffic/CBR]$cbr_(48) set packetSize_ 1024$cbr_(48) set interval_ 2.0$cbr_(48) set random_ 1$cbr_(48) set maxpkts_ 5$cbr_(48) attach-agent $udp_(48)$ns_ connect $udp_(48) $null_(48)$ns_ at 1.3091207348318401 "$cbr_(48) start"## 28 connecting to 29 at time 6.3091207348318399#set udp_(49) [new Agent/UDP]$ns_ attach-agent $node_(28) $udp_(49)set null_(49) [new Agent/Null]$ns_ attach-agent $node_(29) $null_(49)set cbr_(49) [new Application/Traffic/CBR]$cbr_(49) set packetSize_ 1024$cbr_(49) set interval_ 1.0$cbr_(49) set random_ 1$cbr_(49) set maxpkts_ 10000$cbr_(49) attach-agent $udp_(49)$ns_ connect $udp_(49) $null_(49)$ns_ at 6.3091207348318399 "$cbr_(49) start"## 28 connecting to 30 at time 2.7741983685522333#set udp_(50) [new Agent/UDP]$ns_ attach-agent $node_(28) $udp_(50)set null_(50) [new Agent/Null]$ns_ attach-agent $node_(30) $null_(50)set cbr_(50) [new Application/Traffic/CBR]$cbr_(50) set packetSize_ 1024$cbr_(50) set interval_ 2.0$cbr_(50) set random_ 1$cbr_(50) set maxpkts_ 5$cbr_(50) attach-agent $udp_(50)$ns_ connect $udp_(50) $null_(50)$ns_ at 2.7741983685522333 "$cbr_(50) start"## 28 connecting to 30 at time 7.7741983685522333#set udp_(51) [new Agent/UDP]$ns_ attach-agent $node_(28) $udp_(51)set null_(51) [new Agent/Null]$ns_ attach-agent $node_(30) $null_(51)set cbr_(51) [new Application/Traffic/CBR]$cbr_(51) set packetSize_ 1024$cbr_(51) set interval_ 1.0$cbr_(51) set random_ 1$cbr_(51) set maxpkts_ 10000$cbr_(51) attach-agent $udp_(51)$ns_ connect $udp_(51) $null_(51)$ns_ at 7.7741983685522333 "$cbr_(51) start"## 33 connecting to 34 at time 4.734080945949108#set udp_(52) [new Agent/UDP]$ns_ attach-agent $node_(33) $udp_(52)set null_(52) [new Agent/Null]$ns_ attach-agent $node_(34) $null_(52)set cbr_(52) [new Application/Traffic/CBR]$cbr_(52) set packetSize_ 1024$cbr_(52) set interval_ 2.0$cbr_(52) set random_ 1$cbr_(52) set maxpkts_ 5$cbr_(52) attach-agent $udp_(52)$ns_ connect $udp_(52) $null_(52)$ns_ at 4.734080945949108 "$cbr_(52) start"## 33 connecting to 34 at time 9.734080945949108#set udp_(53) [new Agent/UDP]$ns_ attach-agent $node_(33) $udp_(53)set null_(53) [new Agent/Null]$ns_ attach-agent $node_(34) $null_(53)set cbr_(53) [new Application/Traffic/CBR]$cbr_(53) set packetSize_ 1024$cbr_(53) set interval_ 1.0$cbr_(53) set random_ 1$cbr_(53) set maxpkts_ 10000$cbr_(53) attach-agent $udp_(53)$ns_ connect $udp_(53) $null_(53)$ns_ at 9.734080945949108 "$cbr_(53) start"## 33 connecting to 35 at time 3.8634786865969555#set udp_(54) [new Agent/UDP]$ns_ attach-agent $node_(33) $udp_(54)set null_(54) [new Agent/Null]$ns_ attach-agent $node_(35) $null_(54)set cbr_(54) [new Application/Traffic/CBR]$cbr_(54) set packetSize_ 1024$cbr_(54) set interval_ 2.0$cbr_(54) set random_ 1$cbr_(54) set maxpkts_ 5$cbr_(54) attach-agent $udp_(54)$ns_ connect $udp_(54) $null_(54)$ns_ at 3.8634786865969555 "$cbr_(54) start"## 33 connecting to 35 at time 8.8634786865969559#set udp_(55) [new Agent/UDP]$ns_ attach-agent $node_(33) $udp_(55)set null_(55) [new Agent/Null]$ns_ attach-agent $node_(35) $null_(55)set cbr_(55) [new Application/Traffic/CBR]$cbr_(55) set packetSize_ 1024$cbr_(55) set interval_ 1.0$cbr_(55) set random_ 1$cbr_(55) set maxpkts_ 10000$cbr_(55) attach-agent $udp_(55)$ns_ connect $udp_(55) $null_(55)$ns_ at 8.8634786865969559 "$cbr_(55) start"## 35 connecting to 36 at time 0.89363924967760189#set udp_(56) [new Agent/UDP]$ns_ attach-agent $node_(35) $udp_(56)set null_(56) [new Agent/Null]$ns_ attach-agent $node_(36) $null_(56)set cbr_(56) [new Application/Traffic/CBR]$cbr_(56) set packetSize_ 1024$cbr_(56) set interval_ 2.0$cbr_(56) set random_ 1$cbr_(56) set maxpkts_ 5$cbr_(56) attach-agent $udp_(56)$ns_ connect $udp_(56) $null_(56)$ns_ at 0.89363924967760189 "$cbr_(56) start"## 35 connecting to 36 at time 5.8936392496776016#set udp_(57) [new Agent/UDP]$ns_ attach-agent $node_(35) $udp_(57)set null_(57) [new Agent/Null]$ns_ attach-agent $node_(36) $null_(57)set cbr_(57) [new Application/Traffic/CBR]$cbr_(57) set packetSize_ 1024$cbr_(57) set interval_ 1.0$cbr_(57) set random_ 1$cbr_(57) set maxpkts_ 10000$cbr_(57) attach-agent $udp_(57)$ns_ connect $udp_(57) $null_(57)$ns_ at 5.8936392496776016 "$cbr_(57) start"## 36 connecting to 37 at time 0.45678457964993291#set udp_(58) [new Agent/UDP]$ns_ attach-agent $node_(36) $udp_(58)set null_(58) [new Agent/Null]$ns_ attach-agent $node_(37) $null_(58)set cbr_(58) [new Application/Traffic/CBR]$cbr_(58) set packetSize_ 1024$cbr_(58) set interval_ 2.0$cbr_(58) set random_ 1$cbr_(58) set maxpkts_ 5$cbr_(58) attach-agent $udp_(58)$ns_ connect $udp_(58) $null_(58)$ns_ at 0.45678457964993291 "$cbr_(58) start"## 36 connecting to 37 at time 5.4567845796499332#set udp_(59) [new Agent/UDP]$ns_ attach-agent $node_(36) $udp_(59)set null_(59) [new Agent/Null]$ns_ attach-agent $node_(37) $null_(59)set cbr_(59) [new Application/Traffic/CBR]$cbr_(59) set packetSize_ 1024$cbr_(59) set interval_ 1.0$cbr_(59) set random_ 1$cbr_(59) set maxpkts_ 10000$cbr_(59) attach-agent $udp_(59)$ns_ connect $udp_(59) $null_(59)$ns_ at 5.4567845796499332 "$cbr_(59) start"##Total sources/connections: 20/60#
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -