?? cbr-50n-30c-1p
字號:
## nodes: 50, max conn: 30, send rate: 1.0, seed: 1### 1 connecting to 2 at time 0.071023302185825685#set udp_(0) [new Agent/UDP]$ns_ attach-agent $node_(1) $udp_(0)set null_(0) [new Agent/Null]$ns_ attach-agent $node_(2) $null_(0)set cbr_(0) [new Application/Traffic/CBR]$cbr_(0) set packetSize_ 1024$cbr_(0) set interval_ 2.0$cbr_(0) set random_ 1$cbr_(0) set maxpkts_ 5$cbr_(0) attach-agent $udp_(0)$ns_ connect $udp_(0) $null_(0)$ns_ at 0.071023302185825685 "$cbr_(0) start"## 1 connecting to 2 at time 5.071023302185826#set udp_(1) [new Agent/UDP]$ns_ attach-agent $node_(1) $udp_(1)set null_(1) [new Agent/Null]$ns_ attach-agent $node_(2) $null_(1)set cbr_(1) [new Application/Traffic/CBR]$cbr_(1) set packetSize_ 1024$cbr_(1) set interval_ 1.0$cbr_(1) set random_ 1$cbr_(1) set maxpkts_ 10000$cbr_(1) attach-agent $udp_(1)$ns_ connect $udp_(1) $null_(1)$ns_ at 5.071023302185826 "$cbr_(1) start"## 4 connecting to 5 at time 1.5648088588215452#set udp_(2) [new Agent/UDP]$ns_ attach-agent $node_(4) $udp_(2)set null_(2) [new Agent/Null]$ns_ attach-agent $node_(5) $null_(2)set cbr_(2) [new Application/Traffic/CBR]$cbr_(2) set packetSize_ 1024$cbr_(2) set interval_ 2.0$cbr_(2) set random_ 1$cbr_(2) set maxpkts_ 5$cbr_(2) attach-agent $udp_(2)$ns_ connect $udp_(2) $null_(2)$ns_ at 1.5648088588215452 "$cbr_(2) start"## 4 connecting to 5 at time 6.5648088588215447#set udp_(3) [new Agent/UDP]$ns_ attach-agent $node_(4) $udp_(3)set null_(3) [new Agent/Null]$ns_ attach-agent $node_(5) $null_(3)set cbr_(3) [new Application/Traffic/CBR]$cbr_(3) set packetSize_ 1024$cbr_(3) set interval_ 1.0$cbr_(3) set random_ 1$cbr_(3) set maxpkts_ 10000$cbr_(3) attach-agent $udp_(3)$ns_ connect $udp_(3) $null_(3)$ns_ at 6.5648088588215447 "$cbr_(3) start"## 4 connecting to 6 at time 4.0823802580509243#set udp_(4) [new Agent/UDP]$ns_ attach-agent $node_(4) $udp_(4)set null_(4) [new Agent/Null]$ns_ attach-agent $node_(6) $null_(4)set cbr_(4) [new Application/Traffic/CBR]$cbr_(4) set packetSize_ 1024$cbr_(4) set interval_ 2.0$cbr_(4) set random_ 1$cbr_(4) set maxpkts_ 5$cbr_(4) attach-agent $udp_(4)$ns_ connect $udp_(4) $null_(4)$ns_ at 4.0823802580509243 "$cbr_(4) start"## 4 connecting to 6 at time 9.0823802580509252#set udp_(5) [new Agent/UDP]$ns_ attach-agent $node_(4) $udp_(5)set null_(5) [new Agent/Null]$ns_ attach-agent $node_(6) $null_(5)set cbr_(5) [new Application/Traffic/CBR]$cbr_(5) set packetSize_ 1024$cbr_(5) set interval_ 1.0$cbr_(5) set random_ 1$cbr_(5) set maxpkts_ 10000$cbr_(5) attach-agent $udp_(5)$ns_ connect $udp_(5) $null_(5)$ns_ at 9.0823802580509252 "$cbr_(5) start"## 6 connecting to 7 at time 1.5453952884047271#set udp_(6) [new Agent/UDP]$ns_ attach-agent $node_(6) $udp_(6)set null_(6) [new Agent/Null]$ns_ attach-agent $node_(7) $null_(6)set cbr_(6) [new Application/Traffic/CBR]$cbr_(6) set packetSize_ 1024$cbr_(6) set interval_ 2.0$cbr_(6) set random_ 1$cbr_(6) set maxpkts_ 5$cbr_(6) attach-agent $udp_(6)$ns_ connect $udp_(6) $null_(6)$ns_ at 1.5453952884047271 "$cbr_(6) start"## 6 connecting to 7 at time 6.5453952884047268#set udp_(7) [new Agent/UDP]$ns_ attach-agent $node_(6) $udp_(7)set null_(7) [new Agent/Null]$ns_ attach-agent $node_(7) $null_(7)set cbr_(7) [new Application/Traffic/CBR]$cbr_(7) set packetSize_ 1024$cbr_(7) set interval_ 1.0$cbr_(7) set random_ 1$cbr_(7) set maxpkts_ 10000$cbr_(7) attach-agent $udp_(7)$ns_ connect $udp_(7) $null_(7)$ns_ at 6.5453952884047268 "$cbr_(7) start"## 7 connecting to 8 at time 0.82072703206014219#set udp_(8) [new Agent/UDP]$ns_ attach-agent $node_(7) $udp_(8)set null_(8) [new Agent/Null]$ns_ attach-agent $node_(8) $null_(8)set cbr_(8) [new Application/Traffic/CBR]$cbr_(8) set packetSize_ 1024$cbr_(8) set interval_ 2.0$cbr_(8) set random_ 1$cbr_(8) set maxpkts_ 5$cbr_(8) attach-agent $udp_(8)$ns_ connect $udp_(8) $null_(8)$ns_ at 0.82072703206014219 "$cbr_(8) start"## 7 connecting to 8 at time 5.8207270320601419#set udp_(9) [new Agent/UDP]$ns_ attach-agent $node_(7) $udp_(9)set null_(9) [new Agent/Null]$ns_ attach-agent $node_(8) $null_(9)set cbr_(9) [new Application/Traffic/CBR]$cbr_(9) set packetSize_ 1024$cbr_(9) set interval_ 1.0$cbr_(9) set random_ 1$cbr_(9) set maxpkts_ 10000$cbr_(9) attach-agent $udp_(9)$ns_ connect $udp_(9) $null_(9)$ns_ at 5.8207270320601419 "$cbr_(9) start"## 7 connecting to 9 at time 0.2139727865410842#set udp_(10) [new Agent/UDP]$ns_ attach-agent $node_(7) $udp_(10)set null_(10) [new Agent/Null]$ns_ attach-agent $node_(9) $null_(10)set cbr_(10) [new Application/Traffic/CBR]$cbr_(10) set packetSize_ 1024$cbr_(10) set interval_ 2.0$cbr_(10) set random_ 1$cbr_(10) set maxpkts_ 5$cbr_(10) attach-agent $udp_(10)$ns_ connect $udp_(10) $null_(10)$ns_ at 0.2139727865410842 "$cbr_(10) start"## 7 connecting to 9 at time 5.2139727865410839#set udp_(11) [new Agent/UDP]$ns_ attach-agent $node_(7) $udp_(11)set null_(11) [new Agent/Null]$ns_ attach-agent $node_(9) $null_(11)set cbr_(11) [new Application/Traffic/CBR]$cbr_(11) set packetSize_ 1024$cbr_(11) set interval_ 1.0$cbr_(11) set random_ 1$cbr_(11) set maxpkts_ 10000$cbr_(11) attach-agent $udp_(11)$ns_ connect $udp_(11) $null_(11)$ns_ at 5.2139727865410839 "$cbr_(11) start"## 8 connecting to 9 at time 0.56904124122534006#set udp_(12) [new Agent/UDP]$ns_ attach-agent $node_(8) $udp_(12)set null_(12) [new Agent/Null]$ns_ attach-agent $node_(9) $null_(12)set cbr_(12) [new Application/Traffic/CBR]$cbr_(12) set packetSize_ 1024$cbr_(12) set interval_ 2.0$cbr_(12) set random_ 1$cbr_(12) set maxpkts_ 5$cbr_(12) attach-agent $udp_(12)$ns_ connect $udp_(12) $null_(12)$ns_ at 0.56904124122534006 "$cbr_(12) start"## 8 connecting to 9 at time 5.5690412412253405#set udp_(13) [new Agent/UDP]$ns_ attach-agent $node_(8) $udp_(13)set null_(13) [new Agent/Null]$ns_ attach-agent $node_(9) $null_(13)set cbr_(13) [new Application/Traffic/CBR]$cbr_(13) set packetSize_ 1024$cbr_(13) set interval_ 1.0$cbr_(13) set random_ 1$cbr_(13) set maxpkts_ 10000$cbr_(13) attach-agent $udp_(13)$ns_ connect $udp_(13) $null_(13)$ns_ at 5.5690412412253405 "$cbr_(13) start"## 9 connecting to 10 at time 2.1182836811609023#set udp_(14) [new Agent/UDP]$ns_ attach-agent $node_(9) $udp_(14)set null_(14) [new Agent/Null]$ns_ attach-agent $node_(10) $null_(14)set cbr_(14) [new Application/Traffic/CBR]$cbr_(14) set packetSize_ 1024$cbr_(14) set interval_ 2.0$cbr_(14) set random_ 1$cbr_(14) set maxpkts_ 5$cbr_(14) attach-agent $udp_(14)$ns_ connect $udp_(14) $null_(14)$ns_ at 2.1182836811609023 "$cbr_(14) start"## 9 connecting to 10 at time 7.1182836811609018#set udp_(15) [new Agent/UDP]$ns_ attach-agent $node_(9) $udp_(15)set null_(15) [new Agent/Null]$ns_ attach-agent $node_(10) $null_(15)set cbr_(15) [new Application/Traffic/CBR]$cbr_(15) set packetSize_ 1024$cbr_(15) set interval_ 1.0$cbr_(15) set random_ 1$cbr_(15) set maxpkts_ 10000$cbr_(15) attach-agent $udp_(15)$ns_ connect $udp_(15) $null_(15)$ns_ at 7.1182836811609018 "$cbr_(15) start"## 9 connecting to 11 at time 0.87402626912762704#set udp_(16) [new Agent/UDP]$ns_ attach-agent $node_(9) $udp_(16)set null_(16) [new Agent/Null]$ns_ attach-agent $node_(11) $null_(16)set cbr_(16) [new Application/Traffic/CBR]$cbr_(16) set packetSize_ 1024$cbr_(16) set interval_ 2.0$cbr_(16) set random_ 1$cbr_(16) set maxpkts_ 5$cbr_(16) attach-agent $udp_(16)$ns_ connect $udp_(16) $null_(16)$ns_ at 0.87402626912762704 "$cbr_(16) start"## 9 connecting to 11 at time 5.8740262691276275#set udp_(17) [new Agent/UDP]$ns_ attach-agent $node_(9) $udp_(17)set null_(17) [new Agent/Null]$ns_ attach-agent $node_(11) $null_(17)set cbr_(17) [new Application/Traffic/CBR]$cbr_(17) set packetSize_ 1024$cbr_(17) set interval_ 1.0$cbr_(17) set random_ 1$cbr_(17) set maxpkts_ 10000$cbr_(17) attach-agent $udp_(17)$ns_ connect $udp_(17) $null_(17)$ns_ at 5.8740262691276275 "$cbr_(17) start"## 11 connecting to 12 at time 1.7437051268032311#set udp_(18) [new Agent/UDP]$ns_ attach-agent $node_(11) $udp_(18)set null_(18) [new Agent/Null]$ns_ attach-agent $node_(12) $null_(18)set cbr_(18) [new Application/Traffic/CBR]$cbr_(18) set packetSize_ 1024$cbr_(18) set interval_ 2.0$cbr_(18) set random_ 1$cbr_(18) set maxpkts_ 5$cbr_(18) attach-agent $udp_(18)$ns_ connect $udp_(18) $null_(18)$ns_ at 1.7437051268032311 "$cbr_(18) start"## 11 connecting to 12 at time 6.7437051268032313#set udp_(19) [new Agent/UDP]$ns_ attach-agent $node_(11) $udp_(19)set null_(19) [new Agent/Null]$ns_ attach-agent $node_(12) $null_(19)set cbr_(19) [new Application/Traffic/CBR]$cbr_(19) set packetSize_ 1024$cbr_(19) set interval_ 1.0$cbr_(19) set random_ 1$cbr_(19) set maxpkts_ 10000$cbr_(19) attach-agent $udp_(19)$ns_ connect $udp_(19) $null_(19)$ns_ at 6.7437051268032313 "$cbr_(19) start"## 11 connecting to 13 at time 1.2904397427525558#set udp_(20) [new Agent/UDP]$ns_ attach-agent $node_(11) $udp_(20)set null_(20) [new Agent/Null]$ns_ attach-agent $node_(13) $null_(20)set cbr_(20) [new Application/Traffic/CBR]$cbr_(20) set packetSize_ 1024$cbr_(20) set interval_ 2.0$cbr_(20) set random_ 1$cbr_(20) set maxpkts_ 5$cbr_(20) attach-agent $udp_(20)$ns_ connect $udp_(20) $null_(20)$ns_ at 1.2904397427525558 "$cbr_(20) start"## 11 connecting to 13 at time 6.2904397427525556#set udp_(21) [new Agent/UDP]$ns_ attach-agent $node_(11) $udp_(21)set null_(21) [new Agent/Null]$ns_ attach-agent $node_(13) $null_(21)set cbr_(21) [new Application/Traffic/CBR]$cbr_(21) set packetSize_ 1024$cbr_(21) set interval_ 1.0$cbr_(21) set random_ 1$cbr_(21) set maxpkts_ 10000$cbr_(21) attach-agent $udp_(21)$ns_ connect $udp_(21) $null_(21)$ns_ at 6.2904397427525556 "$cbr_(21) start"## 13 connecting to 14 at time 2.3305796819415781#set udp_(22) [new Agent/UDP]$ns_ attach-agent $node_(13) $udp_(22)set null_(22) [new Agent/Null]$ns_ attach-agent $node_(14) $null_(22)set cbr_(22) [new Application/Traffic/CBR]$cbr_(22) set packetSize_ 1024$cbr_(22) set interval_ 2.0$cbr_(22) set random_ 1$cbr_(22) set maxpkts_ 5$cbr_(22) attach-agent $udp_(22)$ns_ connect $udp_(22) $null_(22)$ns_ at 2.3305796819415781 "$cbr_(22) start"## 13 connecting to 14 at time 7.3305796819415781#set udp_(23) [new Agent/UDP]$ns_ attach-agent $node_(13) $udp_(23)set null_(23) [new Agent/Null]$ns_ attach-agent $node_(14) $null_(23)set cbr_(23) [new Application/Traffic/CBR]$cbr_(23) set packetSize_ 1024$cbr_(23) set interval_ 1.0$cbr_(23) set random_ 1$cbr_(23) set maxpkts_ 10000$cbr_(23) attach-agent $udp_(23)$ns_ connect $udp_(23) $null_(23)$ns_ at 7.3305796819415781 "$cbr_(23) start"## 14 connecting to 15 at time 4.3103364060215359#set udp_(24) [new Agent/UDP]$ns_ attach-agent $node_(14) $udp_(24)set null_(24) [new Agent/Null]$ns_ attach-agent $node_(15) $null_(24)set cbr_(24) [new Application/Traffic/CBR]$cbr_(24) set packetSize_ 1024$cbr_(24) set interval_ 2.0$cbr_(24) set random_ 1$cbr_(24) set maxpkts_ 5$cbr_(24) attach-agent $udp_(24)$ns_ connect $udp_(24) $null_(24)$ns_ at 4.3103364060215359 "$cbr_(24) start"## 14 connecting to 15 at time 9.3103364060215359#set udp_(25) [new Agent/UDP]$ns_ attach-agent $node_(14) $udp_(25)set null_(25) [new Agent/Null]$ns_ attach-agent $node_(15) $null_(25)set cbr_(25) [new Application/Traffic/CBR]$cbr_(25) set packetSize_ 1024$cbr_(25) set interval_ 1.0$cbr_(25) set random_ 1$cbr_(25) set maxpkts_ 10000$cbr_(25) attach-agent $udp_(25)$ns_ connect $udp_(25) $null_(25)$ns_ at 9.3103364060215359 "$cbr_(25) start"## 15 connecting to 16 at time 1.085797297342586#set udp_(26) [new Agent/UDP]$ns_ attach-agent $node_(15) $udp_(26)set null_(26) [new Agent/Null]$ns_ attach-agent $node_(16) $null_(26)set cbr_(26) [new Application/Traffic/CBR]$cbr_(26) set packetSize_ 1024$cbr_(26) set interval_ 2.0$cbr_(26) set random_ 1$cbr_(26) set maxpkts_ 5$cbr_(26) attach-agent $udp_(26)$ns_ connect $udp_(26) $null_(26)$ns_ at 1.085797297342586 "$cbr_(26) start"## 15 connecting to 16 at time 6.0857972973425856#set udp_(27) [new Agent/UDP]$ns_ attach-agent $node_(15) $udp_(27)set null_(27) [new Agent/Null]$ns_ attach-agent $node_(16) $null_(27)set cbr_(27) [new Application/Traffic/CBR]$cbr_(27) set packetSize_ 1024$cbr_(27) set interval_ 1.0$cbr_(27) set random_ 1$cbr_(27) set maxpkts_ 10000$cbr_(27) attach-agent $udp_(27)$ns_ connect $udp_(27) $null_(27)$ns_ at 6.0857972973425856 "$cbr_(27) start"## 15 connecting to 17 at time 1.2061281391448007#set udp_(28) [new Agent/UDP]$ns_ attach-agent $node_(15) $udp_(28)set null_(28) [new Agent/Null]$ns_ attach-agent $node_(17) $null_(28)set cbr_(28) [new Application/Traffic/CBR]$cbr_(28) set packetSize_ 1024$cbr_(28) set interval_ 2.0$cbr_(28) set random_ 1$cbr_(28) set maxpkts_ 5$cbr_(28) attach-agent $udp_(28)$ns_ connect $udp_(28) $null_(28)$ns_ at 1.2061281391448007 "$cbr_(28) start"## 15 connecting to 17 at time 6.2061281391448002#set udp_(29) [new Agent/UDP]$ns_ attach-agent $node_(15) $udp_(29)set null_(29) [new Agent/Null]$ns_ attach-agent $node_(17) $null_(29)set cbr_(29) [new Application/Traffic/CBR]$cbr_(29) set packetSize_ 1024$cbr_(29) set interval_ 1.0$cbr_(29) set random_ 1$cbr_(29) set maxpkts_ 10000$cbr_(29) attach-agent $udp_(29)$ns_ connect $udp_(29) $null_(29)$ns_ at 6.2061281391448002 "$cbr_(29) start"#
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -