[Ns-developers] bug in tcp.cc?
Andrés Arcia
ae.arcia at telecom-bretagne.eu
Tue Feb 5 01:17:19 PST 2008
Greetings,
I think there is a bug in the initialization of the slow start
threshold for TCP (at tcp.cc). If you simply try this code you'll
reproduce it:
$ ns-2.30
% set ns [new Simulator]
_o4
% Agent/TCP/FullTcp set ssthresh_ 1000
1000
% set save [new Agent/TCP/FullTcp]
_o11
% $save set ssthresh_
20
The problem may be at the TcpAgent::reset() method in:
ssthresh_ = int(wnd_);
Since each variable have a TCL bind, the direct setting of ssthresh_
does not represent a problem and then it is silently overwritten in
reset() at the instantiation of a TcpAgent.
Thanks,
--
Andrés Arcia
More information about the Ns-developers
mailing list