Wednesday 11 May 2016

cbr traffic

#  $ ns cbrgen.tcl -type cbr -nn 50 -seed 950000.222 -mc 10 -rate 8.0 > cbr-50-10-8  

#
# nodes: 50, max conn: 10, send rate: 0.125, seed: 950000.222
#
#
# 0 connecting to 1 at time 81.933906610093032
#
set udp_(0) [new Agent/UDP]
$ns_ attach-agent $node_(0) $udp_(0)
set null_(0) [new Agent/Null]
$ns_ attach-agent $node_(1) $null_(0)
set cbr_(0) [new Application/Traffic/CBR]
$cbr_(0) set packetSize_ 512
$cbr_(0) set interval_ 0.125
$cbr_(0) set random_ 1
$cbr_(0) set maxpkts_ 10000
$cbr_(0) attach-agent $udp_(0)
$ns_ connect $udp_(0) $null_(0)
$ns_ at 81.933906610093032 "$cbr_(0) start"
#
# 1 connecting to 2 at time 144.52721277462655
#
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_ 512
$cbr_(1) set interval_ 0.125
$cbr_(1) set random_ 1
$cbr_(1) set maxpkts_ 10000
$cbr_(1) attach-agent $udp_(1)
$ns_ connect $udp_(1) $null_(1)
$ns_ at 144.52721277462655 "$cbr_(1) start"
#
# 1 connecting to 3 at time 144.95019923194786
#
set udp_(2) [new Agent/UDP]
$ns_ attach-agent $node_(1) $udp_(2)
set null_(2) [new Agent/Null]
$ns_ attach-agent $node_(3) $null_(2)
set cbr_(2) [new Application/Traffic/CBR]
$cbr_(2) set packetSize_ 512
$cbr_(2) set interval_ 0.125
$cbr_(2) set random_ 1
$cbr_(2) set maxpkts_ 10000
$cbr_(2) attach-agent $udp_(2)
$ns_ connect $udp_(2) $null_(2)
$ns_ at 144.95019923194786 "$cbr_(2) start"
#
# 2 connecting to 3 at time 35.579250974384721
#
set udp_(3) [new Agent/UDP]
$ns_ attach-agent $node_(2) $udp_(3)
set null_(3) [new Agent/Null]
$ns_ attach-agent $node_(3) $null_(3)
set cbr_(3) [new Application/Traffic/CBR]
$cbr_(3) set packetSize_ 512
$cbr_(3) set interval_ 0.125
$cbr_(3) set random_ 1
$cbr_(3) set maxpkts_ 10000
$cbr_(3) attach-agent $udp_(3)
$ns_ connect $udp_(3) $null_(3)
$ns_ at 35.579250974384721 "$cbr_(3) start"
#
# 4 connecting to 5 at time 43.762275894993117
#
set udp_(4) [new Agent/UDP]
$ns_ attach-agent $node_(4) $udp_(4)
set null_(4) [new Agent/Null]
$ns_ attach-agent $node_(5) $null_(4)
set cbr_(4) [new Application/Traffic/CBR]
$cbr_(4) set packetSize_ 512
$cbr_(4) set interval_ 0.125
$cbr_(4) set random_ 1
$cbr_(4) set maxpkts_ 10000
$cbr_(4) attach-agent $udp_(4)
$ns_ connect $udp_(4) $null_(4)
$ns_ at 43.762275894993117 "$cbr_(4) start"
#
# 4 connecting to 6 at time 123.83755247287338
#
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_ 512
$cbr_(5) set interval_ 0.125
$cbr_(5) set random_ 1
$cbr_(5) set maxpkts_ 10000
$cbr_(5) attach-agent $udp_(5)
$ns_ connect $udp_(5) $null_(5)
$ns_ at 123.83755247287338 "$cbr_(5) start"
#
# 12 connecting to 13 at time 154.86410073696825
#
set udp_(6) [new Agent/UDP]
$ns_ attach-agent $node_(12) $udp_(6)
set null_(6) [new Agent/Null]
$ns_ attach-agent $node_(13) $null_(6)
set cbr_(6) [new Application/Traffic/CBR]
$cbr_(6) set packetSize_ 512
$cbr_(6) set interval_ 0.125
$cbr_(6) set random_ 1
$cbr_(6) set maxpkts_ 10000
$cbr_(6) attach-agent $udp_(6)
$ns_ connect $udp_(6) $null_(6)
$ns_ at 154.86410073696825 "$cbr_(6) start"
#
# 14 connecting to 15 at time 68.140699802032074
#
set udp_(7) [new Agent/UDP]
$ns_ attach-agent $node_(14) $udp_(7)
set null_(7) [new Agent/Null]
$ns_ attach-agent $node_(15) $null_(7)
set cbr_(7) [new Application/Traffic/CBR]
$cbr_(7) set packetSize_ 512
$cbr_(7) set interval_ 0.125
$cbr_(7) set random_ 1
$cbr_(7) set maxpkts_ 10000
$cbr_(7) attach-agent $udp_(7)
$ns_ connect $udp_(7) $null_(7)
$ns_ at 68.140699802032074 "$cbr_(7) start"
#
# 14 connecting to 16 at time 154.31561598289554
#
set udp_(8) [new Agent/UDP]
$ns_ attach-agent $node_(14) $udp_(8)
set null_(8) [new Agent/Null]
$ns_ attach-agent $node_(16) $null_(8)
set cbr_(8) [new Application/Traffic/CBR]
$cbr_(8) set packetSize_ 512
$cbr_(8) set interval_ 0.125
$cbr_(8) set random_ 1
$cbr_(8) set maxpkts_ 10000
$cbr_(8) attach-agent $udp_(8)
$ns_ connect $udp_(8) $null_(8)
$ns_ at 154.31561598289554 "$cbr_(8) start"
#
# 18 connecting to 19 at time 57.203785086611191
#
set udp_(9) [new Agent/UDP]
$ns_ attach-agent $node_(18) $udp_(9)
set null_(9) [new Agent/Null]
$ns_ attach-agent $node_(19) $null_(9)
set cbr_(9) [new Application/Traffic/CBR]
$cbr_(9) set packetSize_ 512
$cbr_(9) set interval_ 0.125
$cbr_(9) set random_ 1
$cbr_(9) set maxpkts_ 10000
$cbr_(9) attach-agent $udp_(9)
$ns_ connect $udp_(9) $null_(9)
$ns_ at 57.203785086611191 "$cbr_(9) start"
#
#Total sources/connections: 7/10
#

No comments:

Post a Comment