[ns] Bidirectional traffic
Bilal T.
misc.bilal at gmail.com
Thu Apr 17 15:01:24 PDT 2008
hi everyone,
i set a bidirectional cbr application traffic between two nodes n0 and n19
this way:
set udp0 [new Agent/UDP]
set sink19 [new Agent/Null]
$ns_ attach-agent $node_(0) $udp0
$ns_ attach-agent $node_(19) $sink19
$ns_ connect $udp0 $sink19
set cbr0 [new Application/Traffic/CBR]
$cbr0 set packetSize_ 260
$cbr0 set interval_ 0.020
$cbr0 attach-agent $udp0
$ns_ at 0.3 "$cbr0 start"
set udp19 [new Agent/UDP]
set sink0 [new Agent/Null]
$ns_ attach-agent $node_(19) $udp19
$ns_ attach-agent $node_(0) $sink0
$ns_ connect $udp19 $sink0
set cbr19 [new Application/Traffic/CBR]
$cbr19 set packetSize_ 260
$cbr19 set interval_ 0.020
$cbr19 attach-agent $udp19
$ns_ at 1.0 "$cbr19 start"
I get a segmentation fault which disappear when increasing interval to 20
seconds for example
1- is this the correct way to set such traffic
2- what can be the cause of the segmentation fault
thank you,
More information about the Ns-users
mailing list