I hope this is what you asked
for {set i 1} {$i <= 3} { incr i } {
$ns duplex-link $n(0) $n(i) 1Mb 10ms DropTail
}
--
cordially
-------------------------------------------------------------------------
BADDI YOUSSEF
ENSIAS, RABAT
y-baddi.developpez.com
Tel: +212 672 43 54 15
---------------------------------------------------------------------------
On Thu, Mar 29, 2012 at 12:00 AM, <ns-users-request@isi.edu> wrote:
> for {set i 1} {$i <= 3} { incr i } {
> set tcp_snk($i) [new Agent/TCPSink]
> $ns attach-agent $n($i) $tcp_snk($i)
> $ns connect $tcpsrc $tcp_snk($i)
> set ftp($i) [$tcpsrc attach-source FTP]
> }
No comments:
Post a Comment