Andrea,
if you want to transmit 1 Mbps every 10 mins,
simply use a
recursive function like:
proc sendData {} {
global ns_
puts "time : [$ns_ now]"
$ns at [$ns_ now] "$ftp send 1e6"
$ns_ at [expr [$ns_ now] + 600.0] "sendData"
}
$ns_ at 600.0
"sendData"
which every 600 sec send 1MB and reschedules itself.
$ftp
is the FTP instance attached to TCP.
bye,
Marco
>----Messaggio
originale----
>Da: [EMAIL PROTECTED]
>Data: 5-nov-2006 6.56 PM
>A: "ns-
users"<[email protected]>
>Ogg: [ns] TCP fixed data transfer
>
>
>Hi. I
need to transfer 1MB every 10 minutes on wireless lan with TCP. How
>can I stop tcp after 1MB is sent?
>
>Thx for help and sorry for my
poor english
>Andrea M
>