[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] segmentation fault



hi all,
i use ns-2.1b7a and would like to generate an exponential traffic source. 
when i run ns, the trace-file stays empty and in my shell "SEGMENTATION 
FAULT" is printed...
what's wrong with my tcl-script?
thanks

...

# UDP connections between node_(0) and node_(1)
set udp0 [new Agent/UDP]
set null0 [new Agent/Null]

$ns attach-agent $node_(0) $udp0
$ns attach-agent $node_(1) $null0
$ns connect $udp0 $null0

set e0 [new Application/Traffic/Exponential]

$e0 set burst_time_ 2
$e0 set idle_time_ 1
$e0 set rate_ 100
$e0 set packetSize_ 500
$e0 attach-agent $udp0
$ns at 5.0 "$e0 start"
# UDP connections between node_(1) and node_(0)
set udp1 [new Agent/UDP]
set null1 [new Agent/Null]

$ns attach-agent $node_(1) $udp1
$ns attach-agent $node_(0) $null1
$ns connect $udp1 $null1

set e1 [new Application/Traffic/Exponential]

$e1 set burst_time_ 2
$e1 set idle_time_ 1
$e1 set rate_ 100
$e1 set packetSize_ 500
$e1 attach-agent $udp1
$ns at 8.0 "$e1 start"

...

_________________________________________________________________
Downloaden Sie MSN Explorer kostenlos unter http://explorer.msn.de/intl.asp