I tried to run the example code available here: http://simula.stanford.edu/~alizade/Site/DCTCP_files/dctcp-ns2-rev1.0.tar.gz
As per the readme file, the patch was successfully applied but on executing the example code, the following error was obtained:
ns: myTrace file3: can't read "dctcp_alpha_": no such variable
while executing
"subst $[subst $var]"
(procedure "_o154" line 5)
(Object next line 5)
invoked from within
"_o154 next dctcp_alpha_"
("eval" body line 1)
invoked from within
"eval $self next $args"
(procedure "_o154" line 18)
(Agent set line 18)
invoked from within
"$tcp($i) set dctcp_alpha_"
(procedure "myTrace" line 8)
invoked from within
"myTrace file3"
How could this be solved?
subst $[subst $var]is awful code, andset $varwould (probably) be better (or the code is even more awful than I thought). But that probably wouldn't fix the problem. Did you write$tcp($i) set dctcp_alpha_and what do you expect it to do? - Donal Fellows