>Hi all!
>Does anybody know how I can change the rate a TCP agent
transmits data?? I mean the agent now sends many packets one after
another, but I >want to reduce that rate so that it sends less packets,
one by one. How can I do that?? Should I change the window or the
congestion window of >the agent??
It's very unusual to make the TCP to send one packet at a time which means you 
only want it to be always in the slow-start phase..... It's indeed possible to 
control the transmission rate... for example of TCP with FTP...try to make a 
loop of constant time series that you want the application to be sent...then 
set the transfer size to be equal to 1 TCP segment size (by default is 
1000bytes).... you may also need to set the upper bound of advertised window 
(window_ ) to 1 which indicate that the receiver only could accept 1 tcp 
segment at a time...
(eg: $ns at $time "ftp send $size")
that's the only way i could think about right now.... and there maybe other 
better way to do it 

>Plus, afterwards I want to do the same thing with a SCTP agent.
As for the SCTP, check the available local variable  first in ns-2 because the 
structure of SCTP is a bit  different with normal TCP.....


      

Reply via email to