Welcome to LQ.
Your file has 40 lines, ns-2.34/tcl/ex/xcp/xcp-tcp.tcl : 400.
That's 360 lines more. 'ns xcp/xcp-tcp.tcl' : Four trace files are created,
and three times scripts for xgraph.
Also : It opens the three Xgraph scenarios ( At least one is animated.)
Why not use the 'xcp-tcp.tcl' as a template, and then make small changes,
one at a time ?
ns your-script.tcl : Creates paradeigma.nam, paradeigma.tr
Looks like a basic example, where xcp-tcp.tcl is a fairly complex one.
Last edited by knudfl; 04-19-2011 at 03:42 AM.