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

I can't stop a ftp transfer



Hi  ns users,

I'm tried to stop a ftp transfer in NS 2.1b3  at given time as follows.
 
set tcp0 [$ns create-connection TCP $node_s1 TCPSink $node_r1  0]
$tcp0  set window_ 30
$tcp0  set packetSize_ 1500
set ftp0 [$tcp0 attach-source FTP]

$ns at 0.0   "$ftp start"
$ns at 20.0  "$ftp stop"

But the source just goes on sending.
Why this happened?

Please let me know the solution.
Thanks.
 
- SeungGu Na -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  <> Name    : Seung-Gu Na
  <> Address : Computer Network Lab., Computer Engineering Dept., Dongguk Univ.
               3-26, Pil-Dong, Chung-Gu, Seoul, KOREA, 133-701
  <> E-mail  : [email protected]
  <> URL     : http://network.dongguk.ac.kr/~sgna
  <> Phone   : (office)02-2260-xxxx   <> FAX : (office)02-2285-1060
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~