📄 cbr-test-9
字号:
## nodes: 8, max conn: 6, send rate: 0.25, seed: 1### 1 connecting to 2 at time 2.5568388786897245#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_ 512$cbr_(0) set interval_ 0.25$cbr_(0) set random_ 1$cbr_(0) set maxpkts_ 10000$cbr_(0) attach-agent $udp_(0)$ns_ connect $udp_(0) $null_(0)$ns_ at 2.5568388786897245 "$cbr_(0) start"## 4 connecting to 5 at time 1.0#set udp_(1) [new Agent/UDP]$ns_ attach-agent $node_(4) $udp_(1)set null_(1) [new Agent/Null]$ns_ attach-agent $node_(5) $null_(1)set cbr_(1) [new Application/Traffic/CBR]$cbr_(1) set packetSize_ 512$cbr_(1) set interval_ 0.25$cbr_(1) set random_ 1$cbr_(1) set maxpkts_ 10000$cbr_(1) attach-agent $udp_(1)$ns_ connect $udp_(1) $null_(1)$ns_ at 1.0 "$cbr_(1) start"## 4 connecting to 6 at time 2.1#set udp_(2) [new Agent/UDP]$ns_ attach-agent $node_(4) $udp_(2)set null_(2) [new Agent/Null]$ns_ attach-agent $node_(6) $null_(2)set cbr_(2) [new Application/Traffic/CBR]$cbr_(2) set packetSize_ 512$cbr_(2) set interval_ 0.25$cbr_(2) set random_ 1$cbr_(2) set maxpkts_ 10000$cbr_(2) attach-agent $udp_(2)$ns_ connect $udp_(2) $null_(2)$ns_ at 2.1 "$cbr_(2) start"## 6 connecting to 7 at time 1.5#set udp_(3) [new Agent/UDP]$ns_ attach-agent $node_(6) $udp_(3)set null_(3) [new Agent/Null]$ns_ attach-agent $node_(7) $null_(3)set cbr_(3) [new Application/Traffic/CBR]$cbr_(3) set packetSize_ 512$cbr_(3) set interval_ 0.25$cbr_(3) set random_ 1$cbr_(3) set maxpkts_ 10000$cbr_(3) attach-agent $udp_(3)$ns_ connect $udp_(3) $null_(3)$ns_ at 1.5 "$cbr_(3) start"## 7 connecting to 8 at time 2.5#set udp_(4) [new Agent/UDP]$ns_ attach-agent $node_(7) $udp_(4)set null_(4) [new Agent/Null]$ns_ attach-agent $node_(8) $null_(4)set cbr_(4) [new Application/Traffic/CBR]$cbr_(4) set packetSize_ 512$cbr_(4) set interval_ 0.25$cbr_(4) set random_ 1$cbr_(4) set maxpkts_ 10000$cbr_(4) attach-agent $udp_(4)$ns_ connect $udp_(4) $null_(4)$ns_ at 2.5 "$cbr_(4) start"## 7 connecting to 0 at time 7.7030203154790309#set udp_(5) [new Agent/UDP]$ns_ attach-agent $node_(7) $udp_(5)set null_(5) [new Agent/Null]$ns_ attach-agent $node_(0) $null_(5)set cbr_(5) [new Application/Traffic/CBR]$cbr_(5) set packetSize_ 512$cbr_(5) set interval_ 0.25$cbr_(5) set random_ 1$cbr_(5) set maxpkts_ 10000$cbr_(5) attach-agent $udp_(5)$ns_ connect $udp_(5) $null_(5)$ns_ at 7.7030203154790309 "$cbr_(5) start"##Total sources/connections: 4/6#
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -