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

[ns] tcp agent - setting sindow size




Is the window size in terms of number of packets?

so if I want to set a 64kb window I would set the window_ to 65.5
(64 * 1000)/1024 = 65.5

for {set i 0} {$i < $NODES } {incr i} {
   set tcp_send($i) [new Agent/TCP/Reno]
   $tcp_send($i) set class_ 0
   $tcp_send($i) set ecn_ 0           # Dispable ECN
   $tcp_send($i) set bug_fix_ 0       # This is TCP-Reno
   $tcp_send($i) set window_ 65.5
   $ns attach-agent $sender($i) $tcp_send($i)
}

is this correct?

Stephan

 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \