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

[ns] TCP parameters



Hi all,
  I'm trying to modify TCP parameters,
but I don'see any effects.....

What the correct procedure?

Part of the .tcl script is:

   set tcp0 [new Agent/TCP]
  
   Agent/TCP set Window_ 40          #why it has no effect?
   Agent/TCP set WindowInit_ 1
   Agent/TCP set sstresh_ 30         #why is ever 20 in simulation?
   Agent/TCP set PacketSize_ 1000

   $ns attach-agent $n0 $tcp0
 
   set sink0 [new Agent/TCPSink]
   $ns attach-agent $n3 $sink0
 
   $ns connect $tcp0 $sink0
  
   $ns add-agent-trace $tcp0 tcp0
   $ns monitor-agent-trace $tcp0
   $tcp0 tracevar cwnd_
  
   set ftp0 [new Application/FTP]
   $ftp0 set packetSize_ 10M
   $ftp0 attach-agent $tcp0
  
  $ns at 0   "$ftp0 start"
  $ns at 178 "$ftp0 stop"
  $ns at 179 "$ns detach-agent $n0 $tcp0 ; $ns detach-agent $n3 $sink0"
  $ns at 180 "finish"