Hi,
I have actually tried to make one node transmit ftp traffic to different
destination nodes at the same time..
something like the following


set tcp1 [new Agent/TCP]

set tcp2 [new Agent/TCP]

set tcp3 [new Agent/TCP]

#$tcp1 set class_ 2

set sink1 [new Agent/TCPSink]

set sink2 [new Agent/TCPSink]

set sink3 [new Agent/TCPSink]

$ns_ attach-agent $W(0) $tcp1

$ns_ attach-agent $W(0) $tcp2

$ns_ attach-agent $W(0) $tcp3

$ns_ attach-agent $node_(0) $sink1

$ns_ attach-agent $node_(1) $sink2

$ns_ attach-agent $node_(2) $sink3

$ns_ connect $tcp1 $sink1

$ns_ connect $tcp2 $sink2

$ns_ connect $tcp3 $sink3

set ftp1 [new Application/FTP]

set ftp2 [new Application/FTP]

set ftp3 [new Application/FTP]

set ftp4 [new Application/FTP]

$ftp1 attach-agent $tcp1

$ftp2 attach-agent $tcp1

$ftp3 attach-agent $tcp2

$ftp4 attach-agent $tcp3

#$ns_ at $opt(ftp1-start) "$ftp1 start"

$ns_ at 55.0 "$ftp1 start"

$ns_ at 60.0 "$ftp1 stop"

#set ftp2 [new Application/FTP]

#$ftp2 attach-agent $tcp1

$ns_ at 65.0 "$ftp2 start"

$ns_ at 70.0 "$ftp2 stop"

$ns_ at 55.0 "$ftp3 start"

$ns_ at 60.0 "$ftp4 start"

In this there is only one source node W(0) which transmits data to different
nodes(1,2,3) at the same time..

Hope this is of help to you..

All the best,

Amrutha.

Reply via email to