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

Re: [ns] Q on how to use trace file



please take a look at the example ~ns/tcl/ex/tg.tcl

Kun-chan Lan


-----Original Message-----
From: Hyeong Soo Chang <[email protected]>
To: [email protected] <[email protected]>
Date: Thursday, June 15, 2000 10:47 AM
Subject: [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.
>