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

[ns] Q on how to use trace file





Hello..

How can I attach a trace file for a source traffic when 
I want to simulate TCP ? 


..................

        $self instvar ns_
        set tcp [$ns_ create-connection TCP/Reno $source TCPSink $dest $fid]
        $tcp set window_ $window
        if {$size > 0}  {$tcp set packetSize_ $size }

        set tfile1 [new Tracefile]
        $tfile1 filename Tracefilename
        set ex1 [new Application/Traffic/Trace]

and then... ??


        $ns_ at $startTime "$ex1 start"


Thanks.


	Hyeong Chang.