On Nov 19, 5:23 pm, Tom Henderson <
t...@tomh.org> wrote:
> Chris, I wanted to point you to some more related work that might give
> you some ideas. David Wei wrote the TCP-Linux module for ns-2:
http://netlab.caltech.edu/projects/ns2tcplinux/ns2linux/tutorial/inde...
Based on what I understood, TCP-Linux defines some structures that are
convenient for accessing the parameters of TCP congestion control
algorithms, namely cc_param_list and cc_list (ns/tcp/linux/ns-linux-
util.h).
I have the feeling that such structure are initialized when calling
module_init() (in ns/tcp/linux/ns-linux-c.h). Said macro, through a
chain of function calls, eventually calls record_linux_param() which
(I suppose) sets the parameters that can be later adjusted.
Though there is no such thing in nsc, I'd say it might be feasible to
do something similar.
The key point is another, I think. TCP congestion algorithms (and
parameters in general) can be set from ns-2 scripts through
LinuxTcpAgent::command (tcp-linux.cc). You need, however, a "tcp
instance" on which to invoke it.
So, maybe a basic question is: how can be "tcp instances" be accessed
from the simulation script in ns-3?
I guess such "tcp instances" correspond to NscTcpL4Protocol objects.
Do you agree?
In such case, how could I get a hold of it, for example starting from
an Application instance?
Best,
Chris