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

[ns] ftp - producemore n



Hi NS-users,
 
I am generating ftp sources with 50 packets every 20sec.
 
For a single user, it is working : the ftp source generates 50 packets only every 20sec.
 
For two users, it is not working : the ftp source generates continuous packets in nam
even if we assign 50 packets every 20sec like single user case.
 
I appreciate it if you can inform me of what is wrong with me.
 
Tai Suk Kim
 
Here is my program related ftp.
----------------------------------------------------------------------------------------------------------------------------------
set     npkts   50
proc ftp_generation { interval } {
        global  ns ftp0 npkts
 
        set time  [expr [$ns now] + $interval]
 
        $ns at [$ns now] "$ftp0 producemore $npkts"
        $ns at $time "ftp_generation $interval "
}
$ns at 0.0 "ftp_generation  20."