Hello everyone

I am creating a program that connects a few node in udp protocol.
here is the code:

set ns_ [new Simulator]

set tracefile1 [open tfile.tr w]
$ns_ trace-all  $tracefile1

proc finish {} {

           global ns tracefile1 
           $ns_ flush-trace
           close $tracefile1
           exit 0
 }

for {set a 0} {$a<=10} {incr a} {
set node_($a) [$ns_ node]
}

set udp_(0) [new Agent/UDP]
$ns_ attach-agent $node_(0) $udp_(0)
set null_(0) [new Agent/Null]
$ns_ attach-agent $node_(5) $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"
#
# 0 connecting to 4 at time 143.84798164658619
#
set udp_(1) [new Agent/UDP]
$ns_ attach-agent $node_(0) $udp_(1)
set null_(1) [new Agent/Null]
$ns_ attach-agent $node_(4) $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 143.84798164658619 "$cbr_(1) start"


$ns_ at 125.0 "finish"
$ns_ run

and here is the error im getting and trace file is also empty.can anyone
tell me why i'm getting this error and why the tracefile is blank?

routes not yet computed
routes not yet computed
routes not yet computed
routes not yet computed
routes not yet computed
routes not yet computed
--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
        _o12: no target for slot 4294967295
        _o12 type: Classifier/Hash/Dest
content dump:
classifier _o12
        0 offset
        0 shift
        2147483647 mask
        1 slots
                slot 0: _o44 (Classifier/Port)
        -1 default
---------- Finished standard no-slot{} default handler ---------


thanks very much

shahin



-- 
View this message in context: 
http://old.nabble.com/Routes-not-yet-computed.why--tp30334382p30334382.html
Sent from the ns-users mailing list archive at Nabble.com.

Reply via email to